syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [2/2] syncope git commit: [SYNCOPE-1217] Adjusting the @UniqueConstraint
Date Wed, 04 Oct 2017 12:06:24 GMT
[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ò <ilgrosso@apache.org>
Authored: Wed Oct 4 14:06:08 2017 +0200
Committer: Francesco Chicchiriccò <ilgrosso@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 {


Mime
View raw message