HHH-17313 Always get Boolean wrapper for HINT_READ_ONLY

This commit is contained in:
Marco Belladelli 2023-11-13 14:56:04 +01:00
parent 1486d5693b
commit 1439e4a9a8
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ public abstract class QueryBinder {
.setTimeout( hints.getTimeout() )
.setFetchSize( hints.getInteger( HibernateHints.HINT_FETCH_SIZE ) )
.setFlushMode( hints.getFlushMode() )
.setReadOnly( hints.getBoolean( HibernateHints.HINT_READ_ONLY ) )
.setReadOnly( hints.getBooleanWrapper( HibernateHints.HINT_READ_ONLY ) )
.setLockOptions( hints.determineLockOptions( namedQuery ) )
.setComment( hints.getString( HibernateHints.HINT_COMMENT ) )
.build();
@ -140,7 +140,7 @@ public abstract class QueryBinder {
.setTimeout( hints.getTimeout() )
.setFetchSize( hints.getInteger( HibernateHints.HINT_FETCH_SIZE ) )
.setFlushMode( hints.getFlushMode() )
.setReadOnly( hints.getBoolean( HibernateHints.HINT_READ_ONLY ) )
.setReadOnly( hints.getBooleanWrapper( HibernateHints.HINT_READ_ONLY ) )
.setComment( hints.getString( HibernateHints.HINT_COMMENT ) )
.addHints( hints.getHintsMap() );