cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r620849 - /cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/ModelerProjectLoadDelegate.java
Date Tue, 12 Feb 2008 16:28:45 GMT
Author: aadamchik
Date: Tue Feb 12 08:28:32 2008
New Revision: 620849

URL: http://svn.apache.org/viewvc?rev=620849&view=rev
Log:
CAY-984 Runtime relationships leak into CayenneModeler

Modified:
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/ModelerProjectLoadDelegate.java

Modified: cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/ModelerProjectLoadDelegate.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/ModelerProjectLoadDelegate.java?rev=620849&r1=620848&r2=620849&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/ModelerProjectLoadDelegate.java
(original)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/action/ModelerProjectLoadDelegate.java
Tue Feb 12 08:28:32 2008
@@ -87,6 +87,16 @@
         }
     }
 
+    @Override
+    public void finishedLoading() {
+        // execute a simplified version of the super method to avoid runtime relationships
+        // and other runtime artifacts...
+        // load missing relationships and update configuration object
+        for (DataDomain domain : getDomains().values()) {
+            config.addDomain(domain);
+        }
+    }
+
     /**
      * Creates a subclass of the DataNode that does not decorate its DataSource, exposing
      * the version that was set on it.



Mime
View raw message