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:
parent
d14805e920
commit
e177341bd2
|
@ -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();
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue