HHH-5275 - Criteria.setLockMode does not work correctly

This commit is contained in:
Steve Ebersole 2011-12-29 11:03:38 -06:00
parent 00d7baedfa
commit 8d9f772a90
1 changed files with 1 additions and 0 deletions

View File

@ -183,6 +183,7 @@ public class LockModeTest extends BaseCoreFunctionalTestCase {
A it2 = (A) s.get( A.class, 1 );
it2.setValue( "changed" );
s.flush();
fail( "Pessimistic lock not obtained/held" );
}
catch ( Exception e ) {
// grr, exception can be any number of types based on database