Fix to use the specified result-set-mapping for named native queries

git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@498859 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Srinivasa Segu 2007-01-22 23:59:44 +00:00
parent 45d90fd282
commit 95544768f6
1 changed files with 4 additions and 0 deletions

View File

@ -1450,6 +1450,10 @@ public class XMLPersistenceMetaDataParser
meta.setResultType(type);
}
val = attrs.getValue("result-set-mapping");
if (val != null)
meta.setResultSetMappingName(val);
Object cur = currentElement();
Object scope = (cur instanceof ClassMetaData)
? ((ClassMetaData) cur).getDescribedType() : null;