HHH-17313 Always get Boolean wrapper for HINT_READ_ONLY
This commit is contained in:
parent
1486d5693b
commit
1439e4a9a8
|
@ -93,7 +93,7 @@ public abstract class QueryBinder {
|
||||||
.setTimeout( hints.getTimeout() )
|
.setTimeout( hints.getTimeout() )
|
||||||
.setFetchSize( hints.getInteger( HibernateHints.HINT_FETCH_SIZE ) )
|
.setFetchSize( hints.getInteger( HibernateHints.HINT_FETCH_SIZE ) )
|
||||||
.setFlushMode( hints.getFlushMode() )
|
.setFlushMode( hints.getFlushMode() )
|
||||||
.setReadOnly( hints.getBoolean( HibernateHints.HINT_READ_ONLY ) )
|
.setReadOnly( hints.getBooleanWrapper( HibernateHints.HINT_READ_ONLY ) )
|
||||||
.setLockOptions( hints.determineLockOptions( namedQuery ) )
|
.setLockOptions( hints.determineLockOptions( namedQuery ) )
|
||||||
.setComment( hints.getString( HibernateHints.HINT_COMMENT ) )
|
.setComment( hints.getString( HibernateHints.HINT_COMMENT ) )
|
||||||
.build();
|
.build();
|
||||||
|
@ -140,7 +140,7 @@ public abstract class QueryBinder {
|
||||||
.setTimeout( hints.getTimeout() )
|
.setTimeout( hints.getTimeout() )
|
||||||
.setFetchSize( hints.getInteger( HibernateHints.HINT_FETCH_SIZE ) )
|
.setFetchSize( hints.getInteger( HibernateHints.HINT_FETCH_SIZE ) )
|
||||||
.setFlushMode( hints.getFlushMode() )
|
.setFlushMode( hints.getFlushMode() )
|
||||||
.setReadOnly( hints.getBoolean( HibernateHints.HINT_READ_ONLY ) )
|
.setReadOnly( hints.getBooleanWrapper( HibernateHints.HINT_READ_ONLY ) )
|
||||||
.setComment( hints.getString( HibernateHints.HINT_COMMENT ) )
|
.setComment( hints.getString( HibernateHints.HINT_COMMENT ) )
|
||||||
.addHints( hints.getHintsMap() );
|
.addHints( hints.getHintsMap() );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue