openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curti...@apache.org
Subject svn commit: r986124 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/TestUpdateSingleValuedAssociation.java
Date Mon, 16 Aug 2010 20:21:06 GMT
Author: curtisr7
Date: Mon Aug 16 20:21:05 2010
New Revision: 986124

URL: http://svn.apache.org/viewvc?rev=986124&view=rev
Log:
OPENJPA-1469: Miscellaneous test updates.

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/TestUpdateSingleValuedAssociation.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/TestUpdateSingleValuedAssociation.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/TestUpdateSingleValuedAssociation.java?rev=986124&r1=986123&r2=986124&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/TestUpdateSingleValuedAssociation.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/query/TestUpdateSingleValuedAssociation.java
Mon Aug 16 20:21:05 2010
@@ -20,11 +20,12 @@ package org.apache.openjpa.persistence.j
 
 import java.util.List;
 
+import javax.persistence.Cache;
 import javax.persistence.EntityManager;
 import javax.persistence.Query;
 
-import org.apache.openjpa.persistence.jdbc.query.domain.Application;
 import org.apache.openjpa.persistence.jdbc.query.domain.Applicant;
+import org.apache.openjpa.persistence.jdbc.query.domain.Application;
 import org.apache.openjpa.persistence.test.SingleEMFTestCase;
 
 /**
@@ -133,5 +134,9 @@ public class TestUpdateSingleValuedAssoc
 		}
 		query.executeUpdate();
 		em.getTransaction().commit();
+		Cache cache = emf.getCache();
+		if (cache != null) {
+		    cache.evictAll();
+		}
 	}
 }



Mime
View raw message