cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [cxf-fediz] 01/02: Revert "FEDIZ-235 - Explicity set unique=false for the OpenJPA Index values"
Date Thu, 13 Dec 2018 11:31:48 GMT
This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf-fediz.git

commit 28cb7ee78f44f08bc65a8fe71462cfa8ef6110ef
Author: Colm O hEigeartaigh <coheigea@apache.org>
AuthorDate: Thu Dec 13 10:17:45 2018 +0000

    Revert "FEDIZ-235 - Explicity set unique=false for the OpenJPA Index values"
    
    This reverts commit 8f294bffa85a9954a68be6342314e2c7df169560.
---
 .../org/apache/cxf/fediz/service/idp/service/jpa/ApplicationEntity.java | 2 +-
 .../java/org/apache/cxf/fediz/service/idp/service/jpa/ClaimEntity.java  | 2 +-
 .../org/apache/cxf/fediz/service/idp/service/jpa/EntitlementEntity.java | 2 +-
 .../java/org/apache/cxf/fediz/service/idp/service/jpa/IdpEntity.java    | 2 +-
 .../java/org/apache/cxf/fediz/service/idp/service/jpa/RoleEntity.java   | 2 +-
 .../org/apache/cxf/fediz/service/idp/service/jpa/TrustedIdpEntity.java  | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ApplicationEntity.java
b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ApplicationEntity.java
index fb8176b..a6c930a 100644
--- a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ApplicationEntity.java
+++ b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ApplicationEntity.java
@@ -37,7 +37,7 @@ public class ApplicationEntity {
     @Id
     private int id;
 
-    @Index(unique = false)
+    @Index
     @NotNull
     private String realm;  //wtrealm, whr
 
diff --git a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ClaimEntity.java
b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ClaimEntity.java
index b9481d9..e967844 100644
--- a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ClaimEntity.java
+++ b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ClaimEntity.java
@@ -30,7 +30,7 @@ public class ClaimEntity {
     @Id
     private int id;
 
-    @Index(unique = false)
+    @Index
     @NotNull
     private String claimType;
 
diff --git a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/EntitlementEntity.java
b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/EntitlementEntity.java
index e77bddb..dbb169b 100644
--- a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/EntitlementEntity.java
+++ b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/EntitlementEntity.java
@@ -29,7 +29,7 @@ public class EntitlementEntity {
     @Id
     private int id;
 
-    @Index(unique = false)
+    @Index
     private String name;
 
     private String description;
diff --git a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/IdpEntity.java
b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/IdpEntity.java
index a542bd6..27cd33e 100644
--- a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/IdpEntity.java
+++ b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/IdpEntity.java
@@ -46,7 +46,7 @@ public class IdpEntity {
 
     // Unique
     // fed:TargetScope
-    @Index(unique = false)
+    @Index
     @NotNull
     private String realm; // wtrealm, whr
 
diff --git a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/RoleEntity.java
b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/RoleEntity.java
index c902e43..eb7c141 100644
--- a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/RoleEntity.java
+++ b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/RoleEntity.java
@@ -34,7 +34,7 @@ public class RoleEntity {
     @Id
     private int id;
 
-    @Index(unique = false)
+    @Index
     private String name;
 
     private String description;
diff --git a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/TrustedIdpEntity.java
b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/TrustedIdpEntity.java
index 2df5fe0..9ee23a9 100644
--- a/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/TrustedIdpEntity.java
+++ b/services/idp-core/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/TrustedIdpEntity.java
@@ -44,7 +44,7 @@ public class TrustedIdpEntity {
     private int id;
 
     //@Column(name = "REALM", nullable = true, length = FIELD_LENGTH)
-    @Index(unique = false)
+    @Index
     @NotNull
     private String realm;  //wtrealm, whr
 


Mime
View raw message