You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by ol...@apache.org on 2009/12/14 11:27:08 UTC

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

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) {