cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r706063 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/ObjectResolver.java
Date Sun, 19 Oct 2008 20:54:43 GMT
Author: aadamchik
Date: Sun Oct 19 13:54:42 2008
New Revision: 706063

URL: http://svn.apache.org/viewvc?rev=706063&view=rev
Log:
CAY-1025 Do something about to-many prefetch limitations

handling multi-column  ID's in joint prefetches

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/ObjectResolver.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/ObjectResolver.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/ObjectResolver.java?rev=706063&r1=706062&r2=706063&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/ObjectResolver.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/access/ObjectResolver.java
Sun Oct 19 13:54:42 2008
@@ -319,13 +319,10 @@
                     .getName();
 
             Object val = dataRow.get(key);
+            
+            // this is possible when processing left outer joint prefetches
             if (val == null) {
-                throw new CayenneRuntimeException("Null value for '"
-                        + key
-                        + "'. Snapshot: "
-                        + dataRow
-                        + ". Prefix: "
-                        + namePrefix);
+                return null;
             }
 
             // PUT without a prefix



Mime
View raw message