Repository: syncope
Updated Branches:
  refs/heads/2_0_X 85d0a2603 -> 36f1edef9
  refs/heads/master fb0118944 -> 436153b3a


[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/36f1edef
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/36f1edef
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/36f1edef

Branch: refs/heads/2_0_X
Commit: 36f1edef9f6abb3363763eac148e0dde581009b3
Parents: 85d0a26
Author: Francesco Chicchiriccò <[email protected]>
Authored: Wed Oct 4 14:06:08 2017 +0200
Committer: Francesco Chicchiriccò <[email protected]>
Committed: Wed Oct 4 14:06:08 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/36f1edef/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 5bcb6fe..6feccca 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
@@ -57,7 +57,7 @@ import 
org.apache.syncope.core.provisioning.api.utils.EntityUtils;
 
 @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 {

Reply via email to