cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From and...@apache.org
Subject svn commit: r889547 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLSubqueryTest.java
Date Fri, 11 Dec 2009 09:45:13 GMT
Author: andrey
Date: Fri Dec 11 09:45:12 2009
New Revision: 889547

URL: http://svn.apache.org/viewvc?rev=889547&view=rev
Log:
changing tests so that they run on derby

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

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLSubqueryTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLSubqueryTest.java?rev=889547&r1=889546&r2=889547&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLSubqueryTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextEJBQLSubqueryTest.java
Fri Dec 11 09:45:12 2009
@@ -67,7 +67,7 @@
 
         String ejbql = "SELECT a FROM Artist a"
                 + " WHERE EXISTS ("
-                + " SELECT DISTINCT p1 FROM Painting p1"
+                + " SELECT DISTINCT p1.paintingTitle FROM Painting p1"
                 + " WHERE p1.toArtist = a"
                 + ")";
 
@@ -92,7 +92,7 @@
 
         String ejbql = "SELECT p FROM Painting p"
                 + " WHERE EXISTS ("
-                + " SELECT DISTINCT p1 FROM Painting p1"
+                + " SELECT DISTINCT p1.paintingTitle FROM Painting p1"
                 + " WHERE p1.paintingTitle = p.paintingTitle"
                 + " AND p.estimatedPrice <> p1.estimatedPrice"
                 + ")";



Mime
View raw message