OPENJPA-1469: Miscellaneous test updates.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@986124 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Richard G. Curtis 2010-08-16 20:21:05 +00:00
parent b3b274d545
commit f31d31ff9e
1 changed files with 6 additions and 1 deletions

View File

@ -20,11 +20,12 @@ package org.apache.openjpa.persistence.jdbc.query;
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 TestUpdateSingleValuedAssociation extends SingleEMFTestCase {
}
query.executeUpdate();
em.getTransaction().commit();
Cache cache = emf.getCache();
if (cache != null) {
cache.evictAll();
}
}
}