cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r425168 - /incubator/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/modeler/java/org/apache/cayenne/modeler/editor/SelectQueryPrefetchTab.java
Date Mon, 24 Jul 2006 19:59:32 GMT
Author: aadamchik
Date: Mon Jul 24 12:59:31 2006
New Revision: 425168

URL: http://svn.apache.org/viewvc?rev=425168&view=rev
Log:
CAY-609 - 2.0 branch

Modified:
    incubator/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/modeler/java/org/apache/cayenne/modeler/editor/SelectQueryPrefetchTab.java

Modified: incubator/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/modeler/java/org/apache/cayenne/modeler/editor/SelectQueryPrefetchTab.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/modeler/java/org/apache/cayenne/modeler/editor/SelectQueryPrefetchTab.java?rev=425168&r1=425167&r2=425168&view=diff
==============================================================================
--- incubator/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/modeler/java/org/apache/cayenne/modeler/editor/SelectQueryPrefetchTab.java
(original)
+++ incubator/cayenne/main/branches/STABLE-2.0/cayenne/cayenne-java/src/modeler/java/org/apache/cayenne/modeler/editor/SelectQueryPrefetchTab.java
Mon Jul 24 12:59:31 2006
@@ -97,9 +97,12 @@
         }
 
         // check if such prefetch already exists
-        if (selectQuery.getPrefetchTree() != null
-                && selectQuery.getPrefetchTree().getNode(prefetch) != null) {
-            return;
+        if (selectQuery.getPrefetchTree() != null) {
+
+            PrefetchTreeNode node = selectQuery.getPrefetchTree().getNode(prefetch);
+            if (node != null && !node.isPhantom()) {
+                return;
+            }
         }
 
         selectQuery.addPrefetch(prefetch);



Mime
View raw message