openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fa...@apache.org
Subject svn commit: r727894 - /openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
Date Fri, 19 Dec 2008 02:17:25 GMT
Author: fancy
Date: Thu Dec 18 18:17:24 2008
New Revision: 727894

URL: http://svn.apache.org/viewvc?rev=727894&view=rev
Log:
OPENJPA-835 Loading nested toMany EAGER relation resuled in PersistenceException

Modified:
    openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java

Modified: openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java?rev=727894&r1=727893&r2=727894&view=diff
==============================================================================
--- openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
(original)
+++ openjpa/branches/1.2.x/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
Thu Dec 18 18:17:24 2008
@@ -355,7 +355,9 @@
                     getMappedByFieldMapping();
                 Object mappedByObject = info.result.getMappedByValue();
                 if (mappedByFieldMapping != null && mappedByObject != null)
-                    if (mappedByObject instanceof OpenJPAId)
+                    if (mappedByObject instanceof OpenJPAId &&
+                        mapping.getExtraFieldDataIndex(mappedByFieldMapping.
+                        getIndex()) != -1)
                         // The inverse relation can not be set since
                         // we are eagerly loading this sm for
                         // a sm owner that is still in the process of 



Mime
View raw message