mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 22:39:13 +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 );
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user