diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java index 8e743871b..0c9edf09c 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/QueryImpl.java @@ -390,6 +390,7 @@ public class QueryImpl implements OpenJPAQuerySPI, Serializable { throw new ArgumentException(_loc.get( "bad-query-hint-value", key, value), null, null, false); + _query.getFetchConfiguration().setHint(key, value); } else if (QueryHints.HINT_INVALIDATE_PREPARED_QUERY.equals (key)) { _query.getFetchConfiguration().setHint(key, (Boolean)value);