Author: gbadner
Date: 2010-06-15 16:50:02 -0400 (Tue, 15 Jun 2010)
New Revision: 19744
Modified:
core/branches/Branch_3_5/annotations/src/test/java/org/hibernate/test/annotations/manytomany/ManyToManyTest.java
Log:
HHH-5231 : Unit test locks up on postgresql on Branch_3_5
Modified:
core/branches/Branch_3_5/annotations/src/test/java/org/hibernate/test/annotations/manytomany/ManyToManyTest.java
===================================================================
---
core/branches/Branch_3_5/annotations/src/test/java/org/hibernate/test/annotations/manytomany/ManyToManyTest.java 2010-06-15
18:52:54 UTC (rev 19743)
+++
core/branches/Branch_3_5/annotations/src/test/java/org/hibernate/test/annotations/manytomany/ManyToManyTest.java 2010-06-15
20:50:02 UTC (rev 19744)
@@ -99,9 +99,11 @@
s.close();
s = openSession();
+ tx = s.beginTransaction();
List result = s.createCriteria( Supplier.class ).createAlias( "suppStores",
"s" ).add(
Restrictions.eq( "s.name", "Fnac" ) ).list();
assertEquals( 1, result.size() );
+ tx.commit();
s.close();
}
public void testDefaultCompositePk() throws Exception {
@@ -771,4 +773,4 @@
};
}
-}
\ No newline at end of file
+}