cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r546383 - /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLJoinsTest.java
Date Tue, 12 Jun 2007 05:24:36 GMT
Author: aadamchik
Date: Mon Jun 11 22:24:36 2007
New Revision: 546383

URL: http://svn.apache.org/viewvc?view=rev&rev=546383
Log:
EJBQL joins processing - uncommenting one more test that passes now

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=546383&r1=546382&r2=546383
==============================================================================
--- 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
Mon Jun 11 22:24:36 2007
@@ -146,12 +146,12 @@
 
     public void testMultipleJoinsToTheSameTable() throws Exception {
         createTestData("testMultipleJoinsToTheSameTable");
-        // String ejbql = "SELECT a "
-        // + "FROM Artist a JOIN a.paintingArray b JOIN a.paintingArray c "
-        // + "WHERE b.paintingTitle = 'P1' AND c.paintingTitle = 'P2'";
-        //
-        // List artists = createDataContext().performQuery(new EJBQLQuery(ejbql));
-        // assertEquals(1, artists.size());
-        // assertEquals(33001, DataObjectUtils.intPKForObject((Artist) artists.get(0)));
+         String ejbql = "SELECT a "
+                + "FROM Artist a JOIN a.paintingArray b JOIN a.paintingArray c "
+                + "WHERE b.paintingTitle = 'P1' AND c.paintingTitle = 'P2'";
+
+        List artists = createDataContext().performQuery(new EJBQLQuery(ejbql));
+        assertEquals(1, artists.size());
+        assertEquals(33001, DataObjectUtils.intPKForObject((Artist) artists.get(0)));
     }
 }



Mime
View raw message