HHH-5592 org.hibernate.test.jpa.naturalid.ImmutableNaturalIdTest hangs on postgresql

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20696 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Strong Liu 2010-09-25 05:29:17 +00:00
parent f518b84b1b
commit 998ef3d98a
1 changed files with 2 additions and 1 deletions

View File

@ -244,7 +244,8 @@ public class ImmutableNaturalIdTest extends AbstractJPATest {
assertEquals( getSessions().getStatistics().getQueryCachePutCount(), 1 );
getSessions().getStatistics().clear();
s.getTransaction().commit();
s.close();
s = openSession();
s.beginTransaction();
u = ( User ) s.createCriteria( User.class )