openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwsut...@apache.org
Subject svn commit: r571461 - in /openjpa/trunk: openjpa-kernel/src/main/java/org/apache/openjpa/meta/ openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/
Date Fri, 31 Aug 2007 13:42:30 GMT
Author: kwsutter
Date: Fri Aug 31 06:42:29 2007
New Revision: 571461

URL: http://svn.apache.org/viewvc?rev=571461&view=rev
Log:
OPENJPA-347.  This change brings the performance back to the expected levels.  I have also
updated the "BidiSQL" testcase to ensure that regressions like this get caught during normal
testing.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/BidiChild.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/BidiParent.java

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java?rev=571461&r1=571460&r2=571461&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/meta/FieldMetaData.java
Fri Aug 31 06:42:29 2007
@@ -593,7 +593,6 @@
                 // field left as default; dfg setting depends on type
                 switch (getTypeCode()) {
                     case JavaTypes.OBJECT:
-                    case JavaTypes.PC:
                         if (isSerializable() || isEnum())
                             _dfg = DFG_TRUE;
                         else
@@ -607,6 +606,7 @@
                         break;
                     case JavaTypes.COLLECTION:
                     case JavaTypes.MAP:
+                    case JavaTypes.PC:
                     case JavaTypes.PC_UNTYPED:
                         _dfg = DFG_FALSE;
                         break;

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/BidiChild.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/BidiChild.java?rev=571461&r1=571460&r2=571461&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/BidiChild.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/BidiChild.java
Fri Aug 31 06:42:29 2007
@@ -18,6 +18,8 @@
  */
 package org.apache.openjpa.persistence.relations;
 
+import java.io.Serializable;
+
 import javax.persistence.Entity;
 import javax.persistence.FetchType;
 import javax.persistence.GeneratedValue;
@@ -26,7 +28,7 @@
 import javax.persistence.OneToOne;
 
 @Entity
-public class BidiChild {
+public class BidiChild implements Serializable {
 
     @Id
     @GeneratedValue

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/BidiParent.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/BidiParent.java?rev=571461&r1=571460&r2=571461&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/BidiParent.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/BidiParent.java
Fri Aug 31 06:42:29 2007
@@ -18,6 +18,7 @@
  */
 package org.apache.openjpa.persistence.relations;
 
+import java.io.Serializable;
 import java.util.ArrayList;
 import java.util.List;
 
@@ -30,7 +31,7 @@
 import javax.persistence.OrderBy;
 
 @Entity
-public class BidiParent {
+public class BidiParent implements Serializable {
 
     @Id
     @GeneratedValue



Mime
View raw message