openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mik...@apache.org
Subject svn commit: r1157928 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/clauses/TestEJBQueryInterface.java
Date Mon, 15 Aug 2011 17:56:29 GMT
Author: mikedd
Date: Mon Aug 15 17:56:29 2011
New Revision: 1157928

URL: http://svn.apache.org/viewvc?rev=1157928&view=rev
Log:
Add order by to query. Testcase was failing on DB2 and Oracle

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/clauses/TestEJBQueryInterface.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/clauses/TestEJBQueryInterface.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/clauses/TestEJBQueryInterface.java?rev=1157928&r1=1157927&r2=1157928&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/clauses/TestEJBQueryInterface.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jpql/clauses/TestEJBQueryInterface.java
Mon Aug 15 17:56:29 2011
@@ -113,7 +113,7 @@ public class TestEJBQueryInterface exten
     public void testSetFirstResults() {
         EntityManager em = currentEntityManager();
 
-        List l = em.createQuery("Select object(o) from Entity1 o")
+        List l = em.createQuery("Select object(o) from Entity1 o order by o.pk")
             .setFirstResult(3)
             .getResultList();
 



Mime
View raw message