cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r890261 - /cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/objentity/ObjAttributeInfoDialog.java
Date Mon, 14 Dec 2009 10:15:23 GMT
Author: oltka
Date: Mon Dec 14 10:15:22 2009
New Revision: 890261

URL: http://svn.apache.org/viewvc?rev=890261&view=rev
Log:
CAY-1332

* don't change dbAttribute in ObjAttribute Inspector if Java Type to be a custom enum (as
example foo.bar.enums.MyType)

Modified:
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/objentity/ObjAttributeInfoDialog.java

Modified: cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/objentity/ObjAttributeInfoDialog.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/objentity/ObjAttributeInfoDialog.java?rev=890261&r1=890260&r2=890261&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/objentity/ObjAttributeInfoDialog.java
(original)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/objentity/ObjAttributeInfoDialog.java
Mon Dec 14 10:15:22 2009
@@ -471,13 +471,7 @@
                             .getSelectedItem()
                             .toString())) {
                 if (!attribute.getDbAttributePath().equals(attributePath.toString())) {
-
-                    if (isRegistredType(attributeSaved.getType())) {
-                        attributeSaved.setDbAttributePath(attributePath.toString());
-                    }
-                    else {
-                        attributeSaved.setDbAttributePath("");
-                    }
+                    attributeSaved.setDbAttributePath(attributePath.toString());
 
                     if (!attribute.getDbAttributePath().equals(attributePath.toString())
                             && isChange) {



Mime
View raw message