From 5fd390856e9932e95fca0aa70e702d74cf5a9f34 Mon Sep 17 00:00:00 2001 From: Catalina Wei Date: Wed, 4 Feb 2009 04:09:58 +0000 Subject: [PATCH] OPENJPA-703 Cache ResultObjectProvider data to improve query performance recover a line for query hint.OptimizeResultCount git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@740598 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/org/apache/openjpa/persistence/QueryImpl.java | 1 + 1 file changed, 1 insertion(+) 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);