openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ss...@apache.org
Subject svn commit: r498859 - /incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java
Date Mon, 22 Jan 2007 23:59:46 GMT
Author: ssegu
Date: Mon Jan 22 15:59:44 2007
New Revision: 498859

URL: http://svn.apache.org/viewvc?view=rev&rev=498859
Log:
Fix to use the specified result-set-mapping for named native queries

Modified:
    incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java

Modified: incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java?view=diff&rev=498859&r1=498858&r2=498859
==============================================================================
--- incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java
(original)
+++ incubator/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/XMLPersistenceMetaDataParser.java
Mon Jan 22 15:59:44 2007
@@ -1450,6 +1450,10 @@
                 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;



Mime
View raw message