From 5b558e5388dd98b3df44cc7e52a20b38684d5c32 Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Wed, 11 Feb 2009 08:12:37 +0000 Subject: [PATCH] OPENJPA-898: Parse query hints for NamedNativeQuery git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@743270 13f79535-47bb-0310-9956-ffa450edef68 --- .../persistence/AnnotationPersistenceMetaDataParser.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java index d579787ce..c2fb795c9 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/AnnotationPersistenceMetaDataParser.java @@ -1721,6 +1721,8 @@ public class AnnotationPersistenceMetaDataParser if (!StringUtils.isEmpty(query.resultSetMapping())) meta.setResultSetMappingName(query.resultSetMapping()); + for (QueryHint hint : query.hints()) + meta.addHint(hint.name(), hint.value()); meta.setSource(getSourceFile(), (el instanceof Class) ? el : null, meta.SRC_ANNOTATIONS);