OPENJPA-898: Parse query hints for NamedNativeQuery

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@743270 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Pinaki Poddar 2009-02-11 08:12:37 +00:00
parent b20e5e7086
commit 5b558e5388
1 changed files with 2 additions and 0 deletions

View File

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