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
This commit is contained in:
Catalina Wei 2009-02-04 04:09:58 +00:00
parent ddec73796c
commit 5fd390856e
1 changed files with 1 additions and 0 deletions

View File

@ -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);