You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2017/10/04 12:06:24 UTC
[2/2] syncope git commit: [SYNCOPE-1217] Adjusting the
@UniqueConstraint
[SYNCOPE-1217] Adjusting the @UniqueConstraint
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/436153b3
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/436153b3
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/436153b3
Branch: refs/heads/master
Commit: 436153b3a0c3d4421b33288263c09521e51eee71
Parents: fb01189
Author: Francesco Chicchiriccò <il...@apache.org>
Authored: Wed Oct 4 14:06:08 2017 +0200
Committer: Francesco Chicchiriccò <il...@apache.org>
Committed: Wed Oct 4 14:06:15 2017 +0200
----------------------------------------------------------------------
.../org/apache/syncope/core/persistence/jpa/entity/JPARealm.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/436153b3/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/JPARealm.java
----------------------------------------------------------------------
diff --git a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/JPARealm.java b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/JPARealm.java
index e919910..40017fe 100644
--- a/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/JPARealm.java
+++ b/core/persistence-jpa/src/main/java/org/apache/syncope/core/persistence/jpa/entity/JPARealm.java
@@ -54,7 +54,7 @@ import org.apache.syncope.core.persistence.jpa.validation.entity.RealmCheck;
@Entity
@Table(name = JPARealm.TABLE, uniqueConstraints =
- @UniqueConstraint(columnNames = { "id", "parent_id" }))
+ @UniqueConstraint(columnNames = { "name", "parent_id" }))
@Cacheable
@RealmCheck
public class JPARealm extends AbstractGeneratedKeyEntity implements Realm {