private static boolean mappingCompatible ( EntitySchema oldSchema , EntitySchema newSchema ) { for ( FieldMapping oldFieldMapping : oldSchema . getColumnMappingDescriptor ( ) . getFieldMappings ( ) ) { FieldMapping newFieldMapping = newSchema . getColumnMappingDescriptor ( ) . getFieldMapping ( oldFieldMapping . getFieldName ( ) ) ; if ( newFieldMapping != null ) { if ( ! oldFieldMapping . equals ( newFieldMapping ) ) { return false ; } } } return true ; }
Ensure that the column mappings for the shared fields between the old and new schema haven t changed .