HHH-3946 - Added missing 'open transactions' and fixed the assertion failure.

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16703 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Juraci Krohling 2009-06-05 12:48:36 +00:00
parent d14805e920
commit e177341bd2
2 changed files with 4 additions and 0 deletions

View File

@ -609,6 +609,7 @@ public class MultiTableTest extends LegacyTestCase {
s.close();
s = openSession();
s.beginTransaction();
s.delete( s.load(Lower.class, id) );
s.getTransaction().commit();
s.close();

View File

@ -82,6 +82,7 @@ public class ParentChildTest extends LegacyTestCase {
s.close();
s = openSession();
s.beginTransaction();
s.replicate(baz, ReplicationMode.OVERWRITE);
// HHH-2378
SessionImpl x = (SessionImpl)s;
@ -92,6 +93,7 @@ public class ParentChildTest extends LegacyTestCase {
s.close();
s = openSession();
s.beginTransaction();
s.replicate(baz, ReplicationMode.IGNORE);
s.getTransaction().commit();
s.close();
@ -1032,6 +1034,7 @@ public class ParentChildTest extends LegacyTestCase {
if ( (getDialect() instanceof MySQLDialect) ) {
session.connection().setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
}
session.getTransaction().begin();
// First, prime the fixture session to think the entity does not exist
try {