mirror of https://github.com/apache/openjpa.git
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:
parent
45d90fd282
commit
95544768f6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue