cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From owu...@apache.org
Subject svn commit: r1564030 - in /cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa: ApplicationEntity.java ClaimEntity.java IdpEntity.java TrustedIdpEntity.java
Date Mon, 03 Feb 2014 19:52:51 GMT
Author: owulff
Date: Mon Feb  3 19:52:50 2014
New Revision: 1564030

URL: http://svn.apache.org/r1564030
Log:
Add annotations to create index for non-primary keys. JPA impl specific. Wait for JPA 2.1
support

Modified:
    cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ApplicationEntity.java
    cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ClaimEntity.java
    cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/IdpEntity.java
    cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/TrustedIdpEntity.java

Modified: cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ApplicationEntity.java
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ApplicationEntity.java?rev=1564030&r1=1564029&r2=1564030&view=diff
==============================================================================
--- cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ApplicationEntity.java
(original)
+++ cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ApplicationEntity.java
Mon Feb  3 19:52:50 2014
@@ -26,6 +26,8 @@ import javax.persistence.Entity;
 import javax.persistence.Id;
 import javax.persistence.OneToMany;
 
+import org.apache.openjpa.persistence.jdbc.Index;
+
 
 @Entity(name = "Application")
 public class ApplicationEntity {
@@ -33,6 +35,7 @@ public class ApplicationEntity {
     @Id
     private int id;
     
+    @Index
     private String realm;  //wtrealm, whr
 
     //Could be read from Metadata, RoleDescriptor protocolSupportEnumeration=

Modified: cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ClaimEntity.java
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ClaimEntity.java?rev=1564030&r1=1564029&r2=1564030&view=diff
==============================================================================
--- cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ClaimEntity.java
(original)
+++ cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/ClaimEntity.java
Mon Feb  3 19:52:50 2014
@@ -21,12 +21,17 @@ package org.apache.cxf.fediz.service.idp
 import javax.persistence.Entity;
 import javax.persistence.Id;
 
+import org.apache.openjpa.persistence.jdbc.Index;
+
 @Entity(name = "Claim")
 public class ClaimEntity {
     
     @Id
     private int id;
+    
+    @Index
     private String claimType;
+    
     private String displayName;
     private String description;
         

Modified: cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/IdpEntity.java
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/IdpEntity.java?rev=1564030&r1=1564029&r2=1564030&view=diff
==============================================================================
--- cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/IdpEntity.java
(original)
+++ cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/IdpEntity.java
Mon Feb  3 19:52:50 2014
@@ -34,6 +34,8 @@ import javax.persistence.JoinColumn;
 import javax.persistence.ManyToMany;
 import javax.persistence.MapKeyColumn;
 
+import org.apache.openjpa.persistence.jdbc.Index;
+
 @Entity(name = "IDP")
 public class IdpEntity {
 
@@ -42,6 +44,7 @@ public class IdpEntity {
 
     // Unique
     // fed:TargetScope
+    @Index
     private String realm; // wtrealm, whr
 
     // Unique

Modified: cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/TrustedIdpEntity.java
URL: http://svn.apache.org/viewvc/cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/TrustedIdpEntity.java?rev=1564030&r1=1564029&r2=1564030&view=diff
==============================================================================
--- cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/TrustedIdpEntity.java
(original)
+++ cxf/fediz/trunk/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/service/jpa/TrustedIdpEntity.java
Mon Feb  3 19:52:50 2014
@@ -21,6 +21,8 @@ package org.apache.cxf.fediz.service.idp
 import javax.persistence.Entity;
 import javax.persistence.Id;
 
+import org.apache.openjpa.persistence.jdbc.Index;
+
 
 @Entity(name = "TrustedIDP")
 public class TrustedIdpEntity {
@@ -29,6 +31,7 @@ public class TrustedIdpEntity {
     private int id;
 
     //@Column(name = "REALM", nullable = true, length = FIELD_LENGTH)
+    @Index
     private String realm;  //wtrealm, whr
 
     // Should tokens be cached from trusted IDPs



Mime
View raw message