openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwsut...@apache.org
Subject svn commit: r472347 - /incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/query/TestQueryIdOfRelationDoesNotJoin.java
Date Wed, 08 Nov 2006 00:17:33 GMT
Author: kwsutter
Date: Tue Nov  7 16:17:33 2006
New Revision: 472347

URL: http://svn.apache.org/viewvc?view=rev&rev=472347
Log:
Forgot to include the ManyOneEntitySub.class in the MetaDataFactory...  Query tests now work
again.

Modified:
    incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/query/TestQueryIdOfRelationDoesNotJoin.java

Modified: incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/query/TestQueryIdOfRelationDoesNotJoin.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/query/TestQueryIdOfRelationDoesNotJoin.java?view=diff&rev=472347&r1=472346&r2=472347
==============================================================================
--- incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/query/TestQueryIdOfRelationDoesNotJoin.java
(original)
+++ incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/query/TestQueryIdOfRelationDoesNotJoin.java
Tue Nov  7 16:17:33 2006
@@ -40,16 +40,17 @@
 
     public void setUp() {
         Map props = new HashMap();
-        props.put("openjpa.MetaDataFactory", "jpa(Types=" 
-            + ManyOneEntity.class.getName() + ")");
+        props.put("openjpa.MetaDataFactory", "jpa(Types="
+                + ManyOneEntity.class.getName() + ";"
+                + ManyOneEntitySub.class.getName() + ")");
         emf = Persistence.createEntityManagerFactory("test", props);
 
         ManyOneEntity e1 = new ManyOneEntity();
-        e1.setName("e1"); 
+        e1.setName("e1");
         ManyOneEntity e2 = new ManyOneEntity();
-        e2.setName("e2"); 
+        e2.setName("e2");
         ManyOneEntity e3 = new ManyOneEntity();
-        e3.setName("e3"); 
+        e3.setName("e3");
         e1.setRel(e3);
         e2.setRel(e1);
 



Mime
View raw message