cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r692999 - /cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/dbentity/DbAttributeTableModel.java
Date Mon, 08 Sep 2008 07:09:31 GMT
Author: aadamchik
Date: Mon Sep  8 00:09:30 2008
New Revision: 692999

URL: http://svn.apache.org/viewvc?rev=692999&view=rev
Log:
CAY-1104 Modeler misses new renamed attributes, relationship mappings
(patch 1 by Andrey Razumovskiy with consmetic changes)

Modified:
    cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/dbentity/DbAttributeTableModel.java

Modified: cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/dbentity/DbAttributeTableModel.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/dbentity/DbAttributeTableModel.java?rev=692999&r1=692998&r2=692999&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/dbentity/DbAttributeTableModel.java
(original)
+++ cayenne/main/trunk/framework/cayenne-modeler/src/main/java/org/apache/cayenne/modeler/editor/dbentity/DbAttributeTableModel.java
Mon Sep  8 00:09:30 2008
@@ -167,7 +167,8 @@
             case DB_ATTRIBUTE_NAME:
                 e.setOldName(attr.getName());
                 attr.setName((String) newVal);
-                // setAttributeName((String) newVal, attr);
+                ((DbEntity) attr.getEntity()).dbAttributeChanged(e);
+                
                 fireTableCellUpdated(row, col);
                 break;
             case DB_ATTRIBUTE_TYPE:
@@ -235,11 +236,6 @@
         }
     }
 
-    public void setAttributeName(String newVal, DbAttribute attr) {
-        String newName = newVal.trim();
-        ProjectUtil.setAttributeName(attr, newName);
-    }
-
     public void setAttributeType(String newVal, DbAttribute attr) {
         attr.setType(TypesMapping.getSqlTypeByName(newVal));
     }



Mime
View raw message