HHH-5592 org.hibernate.test.naturalid.mutable.MutableNaturalIdTest hangs on postgresql

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@20698 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Strong Liu 2010-09-25 06:07:07 +00:00
parent ab9bf1dd0c
commit 5ee8c0fc75
1 changed files with 3 additions and 1 deletions

View File

@ -333,7 +333,9 @@ public class MutableNaturalIdTest extends FunctionalTestCase {
assertEquals( getSessions().getStatistics().getQueryCachePutCount(), 1 );
getSessions().getStatistics().clear();
s.getTransaction().commit();
s.close();
s = openSession();
s.beginTransaction();
u = ( User ) s.createCriteria( User.class )