cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r890263 - /cayenne/main/branches/STABLE-3.0/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/objentity/ObjAttributeInfoDialog.java
Date Mon, 14 Dec 2009 10:27:08 GMT
Author: oltka
Date: Mon Dec 14 10:27:07 2009
New Revision: 890263

URL: http://svn.apache.org/viewvc?rev=890263&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)

(cherry picked from commit 62d2c45d91746e1dd12cd8057864bf016e4cf759)

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

Modified: cayenne/main/branches/STABLE-3.0/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/objentity/ObjAttributeInfoDialog.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-3.0/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/objentity/ObjAttributeInfoDialog.java?rev=890263&r1=890262&r2=890263&view=diff
==============================================================================
--- cayenne/main/branches/STABLE-3.0/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/objentity/ObjAttributeInfoDialog.java
(original)
+++ cayenne/main/branches/STABLE-3.0/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/dialog/objentity/ObjAttributeInfoDialog.java
Mon Dec 14 10:27:07 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