mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-07 03:38:16 +00:00
HHH-5275 - Criteria.setLockMode does not work correctly
This commit is contained in:
parent
00d7baedfa
commit
8d9f772a90
@ -183,6 +183,7 @@ private void nowAttemptToUpdateRow() {
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user