HHH-12530 add processing of unknown hints

This commit is contained in:
Sergey Chernolyas 2018-04-29 21:53:36 +03:00 committed by Chris Cranford
parent 15791a84fb
commit db1d2d177b
1 changed files with 5 additions and 1 deletions

View File

@ -1103,12 +1103,16 @@ public abstract class AbstractProducedQuery<R> implements QueryImplementor<R> {
}
if ( !applied ) {
MSG_LOGGER.debugf( "Skipping unsupported query hint [%s]", hintName );
handleUnrecognizedHint(hintName, value);
}
return this;
}
protected void handleUnrecognizedHint(String hintName,Object value) {
MSG_LOGGER.debugf( "Skipping unsupported query hint [%s]", hintName );
}
protected boolean applyJpaCacheRetrieveMode(CacheRetrieveMode mode) {
this.cacheRetrieveMode = mode;
return true;