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 2010/01/13 09:15:47 UTC

svn commit: r898673 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextFlattenedAttributesTest.java

Author: aadamchik
Date: Wed Jan 13 08:15:47 2010
New Revision: 898673

URL: http://svn.apache.org/viewvc?rev=898673&view=rev
Log:
CAY-1069 EJBQL: support paths across flattened relationships

    patch by Ksenia Khailenko - setting fixed test ordering

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

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextFlattenedAttributesTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextFlattenedAttributesTest.java?rev=898673&r1=898672&r2=898673&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextFlattenedAttributesTest.java (original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextFlattenedAttributesTest.java Wed Jan 13 08:15:47 2010
@@ -223,7 +223,8 @@
     public void testSelectEJQBQLLike() throws Exception {
         populateTables();
         EJBQLQuery query = new EJBQLQuery(
-                "SELECT a FROM CompoundPainting a WHERE a.artistName LIKE 'artist%'");
+                "SELECT a FROM CompoundPainting a WHERE a.artistName LIKE 'artist%' " +
+                "ORDER BY a.paintingTitle");
                
         List<?> objects = context.performQuery(query);
 
@@ -241,7 +242,9 @@
     public void testSelectEJQBQLBetween() throws Exception {
         populateTables();
         EJBQLQuery query = new EJBQLQuery(
-                "SELECT a FROM CompoundPainting a WHERE a.artistName BETWEEN 'artist1' AND 'artist4'");
+                "SELECT a FROM CompoundPainting a " +
+                "WHERE a.artistName BETWEEN 'artist1' AND 'artist4' " +
+                "ORDER BY a.paintingTitle");
                
         List<?> objects = context.performQuery(query);