openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fayw...@apache.org
Subject svn commit: r811759 - in /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence: datacache/ inheritance/ relations/
Date Sun, 06 Sep 2009 04:47:29 GMT
Author: faywang
Date: Sun Sep  6 04:47:28 2009
New Revision: 811759

URL: http://svn.apache.org/viewvc?rev=811759&view=rev
Log:
fix test case problem for MySQL

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheBehavesIdentical.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/TestDefaultInheritanceStrategy.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/C.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/CM.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/D.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/E.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/VC.java
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/VCS.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheBehavesIdentical.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheBehavesIdentical.java?rev=811759&r1=811758&r2=811759&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheBehavesIdentical.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheBehavesIdentical.java
Sun Sep  6 04:47:28 2009
@@ -483,7 +483,7 @@
         // delete the record in the database in a separate transaction using
         // native SQL so that the in-memory instance is not altered 
         em.getTransaction().begin();
-        String sql = "DELETE FROM POBJECT WHERE id="+oid;
+        String sql = "DELETE FROM PObject WHERE id="+oid;
         em.createNativeQuery(sql).executeUpdate();
         em.getTransaction().commit();
         

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/TestDefaultInheritanceStrategy.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/TestDefaultInheritanceStrategy.java?rev=811759&r1=811758&r2=811759&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/TestDefaultInheritanceStrategy.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/inheritance/TestDefaultInheritanceStrategy.java
Sun Sep  6 04:47:28 2009
@@ -211,7 +211,7 @@
         em.clear();
 
         // Verify that baseclass2 contains a discriminator column
-        verifyDtypeColumnEntriesAndMapping(em, "BASECLASS2", 3, 
+        verifyDtypeColumnEntriesAndMapping(em, "BaseClass2", 3, 
                 BaseClass2.class);
         
         // Verify that the subclass tables do not contain a discriminator column

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/C.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/C.java?rev=811759&r1=811758&r2=811759&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/C.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/C.java
Sun Sep  6 04:47:28 2009
@@ -32,7 +32,7 @@
 
 @Entity
 @IdClass(C.CId.class)
-@Table(name="C4", schema="relations")
+@Table(name="C4_REL")
 public class C {
 	
 	@Id

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/CM.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/CM.java?rev=811759&r1=811758&r2=811759&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/CM.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/CM.java
Sun Sep  6 04:47:28 2009
@@ -34,7 +34,7 @@
 
 @Entity
 @IdClass(CM.CMId.class)
-@Table(name="CM4", schema="relations")
+@Table(name="CM4_REL")
 public class CM {
 	
 	@Id

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/D.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/D.java?rev=811759&r1=811758&r2=811759&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/D.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/D.java
Sun Sep  6 04:47:28 2009
@@ -28,7 +28,7 @@
 
 
 @Entity
-@Table(name="D4", schema="relations")
+@Table(name="D4_REL")
 @IdClass(D.CId.class)
 public class D {
 

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/E.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/E.java?rev=811759&r1=811758&r2=811759&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/E.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/E.java
Sun Sep  6 04:47:28 2009
@@ -28,7 +28,7 @@
 import javax.persistence.Table;
 
 @Entity
-@Table(name="E4", schema="relations")
+@Table(name="E4_REL")
 public class E {
 
 	@Id

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/VC.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/VC.java?rev=811759&r1=811758&r2=811759&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/VC.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/VC.java
Sun Sep  6 04:47:28 2009
@@ -35,7 +35,7 @@
 import org.apache.openjpa.persistence.jdbc.ForeignKey;
 
 @Entity
-@Table(name="VC4", schema="relations")
+@Table(name="VC4_REL")
 @IdClass(VC.VCId.class)
 
 public class VC {

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/VCS.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/VCS.java?rev=811759&r1=811758&r2=811759&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/VCS.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/VCS.java
Sun Sep  6 04:47:28 2009
@@ -34,7 +34,7 @@
 import org.apache.openjpa.persistence.jdbc.ForeignKey;
 
 @Entity
-@Table(name="VCS4", schema="relations")
+@Table(name="VCS4_REL")
 @IdClass(VCS.VCSId.class)
 public class VCS {
 



Mime
View raw message