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 ); A it2 = (A) s.get( A.class, 1 );
it2.setValue( "changed" ); it2.setValue( "changed" );
s.flush(); s.flush();
fail( "Pessimistic lock not obtained/held" );
} }
catch ( Exception e ) { catch ( Exception e ) {
// grr, exception can be any number of types based on database // grr, exception can be any number of types based on database