mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 16:44:57 +00:00
HHH-13364 : Query.getSingleResult and getResultList() throw PessimisticLockException when pessimistic lock fails with timeout
This commit is contained in:
parent
288afa35e0
commit
f62913ba1c
@ -1535,7 +1535,7 @@ public List<R> list() {
|
||||
throw new IllegalArgumentException( e );
|
||||
}
|
||||
catch (HibernateException he) {
|
||||
throw getExceptionConverter().convert( he );
|
||||
throw getExceptionConverter().convert( he, getLockOptions() );
|
||||
}
|
||||
finally {
|
||||
afterQuery();
|
||||
@ -1581,7 +1581,7 @@ public R getSingleResult() {
|
||||
return uniqueElement( list );
|
||||
}
|
||||
catch ( HibernateException e ) {
|
||||
throw getExceptionConverter().convert( e );
|
||||
throw getExceptionConverter().convert( e, getLockOptions() );
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user