openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r1233509 - in /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity: LrsEntityA.java LrsEntityB.java
Date Thu, 19 Jan 2012 18:16:57 GMT
Author: curtisr7
Date: Thu Jan 19 18:16:56 2012
New Revision: 1233509

URL: http://svn.apache.org/viewvc?rev=1233509&view=rev
Log:
OPENJPA-2068: Update test Entities.

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityA.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityB.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityA.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityA.java?rev=1233509&r1=1233508&r2=1233509&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityA.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityA.java
Thu Jan 19 18:16:56 2012
@@ -43,7 +43,6 @@ public class LrsEntityA implements Seria
     private static final long serialVersionUID = 1L;
 
     @Id
-    @Index(name = "lrsa_index", unique = true)
     @GeneratedValue(strategy=GenerationType.AUTO)
     Integer id;
 
@@ -52,9 +51,8 @@ public class LrsEntityA implements Seria
     @Basic(fetch = FetchType.LAZY)
     int age;
 
-    @OneToMany(mappedBy = "entitya", cascade = CascadeType.ALL)
-    // if fk creates table need cascadeRemove on inverse
     @LRS
+    @OneToMany(mappedBy = "entitya", cascade = CascadeType.ALL)
     public Collection<LrsEntityB> entitybs;
 
     public LrsEntityA() {

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityB.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityB.java?rev=1233509&r1=1233508&r2=1233509&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityB.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/entity/LrsEntityB.java
Thu Jan 19 18:16:56 2012
@@ -38,7 +38,6 @@ public class LrsEntityB implements Seria
     private static final long serialVersionUID = 1L;
 
     @Id
-    @Index(name = "lrsb_index", unique = true)
     @GeneratedValue(strategy=GenerationType.AUTO)
     Integer id;
 
@@ -46,8 +45,6 @@ public class LrsEntityB implements Seria
     String name;
 
     @ManyToOne()
-    @ForeignKey(deleteAction = ForeignKeyAction.NULL)
-    // needed for native dropandcreatetest
     LrsEntityA entitya;
 
     public LrsEntityB() {



Mime
View raw message