You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by aa...@apache.org on 2007/06/08 20:43:11 UTC

svn commit: r545585 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLJoinsTest.java

Author: aadamchik
Date: Fri Jun  8 11:43:10 2007
New Revision: 545585

URL: http://svn.apache.org/viewvc?view=rev&rev=545585
Log:
fixing relationships in commented out join tests that still fail as there's no adequate EJBQL join processing yet

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLJoinsTest.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLJoinsTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLJoinsTest.java?view=diff&rev=545585&r1=545584&r2=545585
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLJoinsTest.java (original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLJoinsTest.java Fri Jun  8 11:43:10 2007
@@ -107,21 +107,21 @@
     }
 
     public void testImplicitJoins() throws Exception {
-        createTestData("testChainedJoins");
+        // createTestData("testChainedJoins");
         // String ejbql = "SELECT a "
         // + "FROM Artist a "
-        // + "WHERE a.paintingArray.gallery.galleryName = 'gallery2'";
-        //
+        // + "WHERE a.paintingArray.toGallery.galleryName = 'gallery2'";
+        //        
         // List artists = createDataContext().performQuery(new EJBQLQuery(ejbql));
         // assertEquals(1, artists.size());
-        // assertEquals(33002, DataObjectUtils.intPKForObject((Artist) artists.get(0)));
+        //         assertEquals(33002, DataObjectUtils.intPKForObject((Artist) artists.get(0)));
     }
 
     public void testPartialImplicitJoins() throws Exception {
         createTestData("testChainedJoins");
         // String ejbql = "SELECT a "
         // + "FROM Artist a JOIN a.paintingArray b "
-        // + "WHERE a.paintingArray.gallery.galleryName = 'gallery2'";
+        // + "WHERE a.paintingArray.toGallery.galleryName = 'gallery2'";
         //
         // List artists = createDataContext().performQuery(new EJBQLQuery(ejbql));
         // assertEquals(1, artists.size());