openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r426702 - /incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
Date Fri, 28 Jul 2006 23:19:44 GMT
Author: ppoddar
Date: Fri Jul 28 16:19:43 2006
New Revision: 426702

URL: http://svn.apache.org/viewvc?rev=426702&view=rev
Log:
FetchState is traversed for eagerToMany load/select

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

Modified: incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java?rev=426702&r1=426701&r2=426702&view=diff
==============================================================================
--- incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
(original)
+++ incubator/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/kernel/JDBCStoreManager.java
Fri Jul 28 16:19:43 2006
@@ -798,7 +798,8 @@
         JDBCFetchState fetchState, Result res) throws SQLException {
         FieldMapping eagerToMany = load(mapping, sm, fetchState, res, null);
         if (eagerToMany != null)
-            eagerToMany.loadEagerJoin(sm, this, fetchState, res);
+            eagerToMany.loadEagerJoin(sm, this, 
+            	(JDBCFetchState)fetchState.traverse(eagerToMany), res);
         if (_active && _lm != null && res.isLocking())
             _lm.loadedForUpdate(sm);
     }
@@ -901,7 +902,8 @@
         // advance the result set and could exhaust it, so no other mappings
         // can load afterwords
         if (eagerToMany != null)
-            eagerToMany.selectEagerJoin(sel, sm, this, fetchState, eager);
+            eagerToMany.selectEagerJoin(sel, sm, this, 
+            		(JDBCFetchState)fetchState.traverse(eagerToMany), eager);
 
         // optionally select subclass mappings
         if (subs == sel.SUBS_JOINABLE || subs == sel.SUBS_ANY_JOINABLE)



Mime
View raw message