mirror of https://github.com/apache/openjpa.git
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:
parent
b3b274d545
commit
f31d31ff9e
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue