HHH-9234 : Test failure (testNaturalIdChangedWhileAttached) on SAP/SYBASE ASE

This commit is contained in:
Gail Badner 2014-06-18 17:03:42 -07:00
parent 343cd777b6
commit 257efd1025
1 changed files with 7 additions and 1 deletions

View File

@ -161,7 +161,7 @@ public class CachedMutableNaturalIdStrictReadWriteTest extends
final String naturalIdCacheRegion = "hibernate.test.org.hibernate.test.naturalid.mutable.cached.Another##NaturalId";
sessionFactory().getStatistics().clear();
final Session session = openSession();
Session session = openSession();
session.beginTransaction();
final Another it = new Another( "IT");
session.save( it );
@ -176,5 +176,11 @@ public class CachedMutableNaturalIdStrictReadWriteTest extends
// Refresh statistics reference.
statistics = sessionFactory().getStatistics().getNaturalIdCacheStatistics( naturalIdCacheRegion );
assertEquals( 0, statistics.getPutCount() );
session = openSession();
session.beginTransaction();
session.delete( it );
session.getTransaction().commit();
session.clear();
}
}