openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mprud...@apache.org
Subject svn commit: r495034 - /incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheOptimisticLockRecovery.java
Date Wed, 10 Jan 2007 23:18:24 GMT
Author: mprudhom
Date: Wed Jan 10 15:18:23 2007
New Revision: 495034

URL: http://svn.apache.org/viewvc?view=rev&rev=495034
Log:
Fixed bug where we were creating the delete query in the setUp(), but never actually executing
it.

Modified:
    incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheOptimisticLockRecovery.java

Modified: incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheOptimisticLockRecovery.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheOptimisticLockRecovery.java?view=diff&rev=495034&r1=495033&r2=495034
==============================================================================
--- incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheOptimisticLockRecovery.java
(original)
+++ incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheOptimisticLockRecovery.java
Wed Jan 10 15:18:23 2007
@@ -53,7 +53,7 @@
 
         EntityManager em = emf.createEntityManager();
         em.getTransaction().begin();
-        em.createQuery("delete from OptimisticLockInstance");
+        em.createQuery("delete from OptimisticLockInstance").executeUpdate();
 
         OptimisticLockInstance oli = new OptimisticLockInstance("foo");
         try {



Mime
View raw message