openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r1240572 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
Date Sat, 04 Feb 2012 18:09:58 GMT
Author: ppoddar
Date: Sat Feb  4 18:09:57 2012
New Revision: 1240572

URL: http://svn.apache.org/viewvc?rev=1240572&view=rev
Log:
OPENJPA-2099: account for detached state manager

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java?rev=1240572&r1=1240571&r2=1240572&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
(original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
Sat Feb  4 18:09:57 2012
@@ -593,7 +593,7 @@ public class JDBCStoreManager implements
         		PersistenceCapable pc = (PersistenceCapable) member;
             
 	            OpenJPAStateManager sm = (OpenJPAStateManager) pc.pcGetStateManager();
-	            ClassMapping cm = (ClassMapping)sm.getMetaData();
+	            ClassMapping cm = (ClassMapping)_conf.getMetaDataRepositoryInstance().getCachedMetaData(pc.getClass());
 	            FieldMapping[] fmd = cm.getFieldMappings();
 	            for (int j = 0; j < fmd.length; j++) {
 	                if (fmd[j].isTypePC()) {



Mime
View raw message