Revision 44507 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.impl/src/main/java/org/gvsig/fmap/dal/feature/impl/DefaultFeatureType.java

View differences:

DefaultFeatureType.java
1137 1137
        }
1138 1138
        // Si hay campos nuevos -> false
1139 1139
        for (FeatureAttributeDescriptor attr : this) {
1140
            if( old.getAttributeDescriptor(attr.getName())==null ) {
1140
            if(!attr.isComputed() && old.getAttributeDescriptor(attr.getName())==null) {
1141 1141
                return false;
1142 1142
            }
1143 1143
        }
1144 1144
        
1145 1145
        // Si se ha eliminado algun campo -> false
1146 1146
        for (FeatureAttributeDescriptor attr : old) {
1147
            if( this.getAttributeDescriptor(attr.getName())==null ) {
1147
            if(!attr.isComputed() && this.getAttributeDescriptor(attr.getName())==null ) {
1148 1148
                return false;
1149 1149
            }
1150 1150
        }
......
1153 1153
        // los campos uno a uno.
1154 1154
        for (FeatureAttributeDescriptor attr : this) {
1155 1155
            FeatureAttributeDescriptor attrold = old.getAttributeDescriptor(attr.getName());
1156
            if( !attr.hasOnlyMetadataChanges(attrold) ) {
1156
            if(!attr.isComputed() && !attr.hasOnlyMetadataChanges(attrold) ) {
1157 1157
                return false;
1158 1158
            }
1159 1159
        }

Also available in: Unified diff