/** * Synchronize internal information with the mapping data for the given * field. */ public void syncWith(FieldMapping field) { clear(false); if (field.getJoinForeignKey() != null) _tableName = field.getMappingRepository().getDBDictionary(). getFullIdentifier(field.getTable(), true); ClassMapping def = field.getDefiningMapping(); setColumnIO(field.getJoinColumnIO()); if (field.getJoinForeignKey() != null && def.getTable() != null) syncForeignKey(field, field.getJoinForeignKey(), field.getTable(), def.getTable()); _outer = field.isJoinOuter(); syncIndex(field, field.getJoinIndex()); syncUnique(field, field.getJoinUnique()); syncJoinTableUniques(field, field.getJoinTableUniques()); syncOrderColumn(field); syncStrategy(field); }
/** * Synchronize internal information with the mapping data for the given * field. */ public void syncWith(FieldMapping field) { clear(false); if (field.getJoinForeignKey() != null) _tableName = field.getMappingRepository().getDBDictionary(). getFullIdentifier(field.getTable(), true); ClassMapping def = field.getDefiningMapping(); setColumnIO(field.getJoinColumnIO()); if (field.getJoinForeignKey() != null && def.getTable() != null) syncForeignKey(field, field.getJoinForeignKey(), field.getTable(), def.getTable()); _outer = field.isJoinOuter(); syncIndex(field, field.getJoinIndex()); syncUnique(field, field.getJoinUnique()); syncJoinTableUniques(field, field.getJoinTableUniques()); syncOrderColumn(field); syncStrategy(field); }
/** * Synchronize internal information with the mapping data for the given * field. */ public void syncWith(FieldMapping field) { clear(false); if (field.getJoinForeignKey() != null) _tableName = field.getMappingRepository().getDBDictionary(). getFullIdentifier(field.getTable(), true); ClassMapping def = field.getDefiningMapping(); setColumnIO(field.getJoinColumnIO()); if (field.getJoinForeignKey() != null && def.getTable() != null) syncForeignKey(field, field.getJoinForeignKey(), field.getTable(), def.getTable()); _outer = field.isJoinOuter(); syncIndex(field, field.getJoinIndex()); syncUnique(field, field.getJoinUnique()); syncJoinTableUniques(field, field.getJoinTableUniques()); syncOrderColumn(field); syncStrategy(field); }
/** * Synchronize internal information with the mapping data for the given * field. */ public void syncWith(FieldMapping field) { clear(false); if (field.getJoinForeignKey() != null) _tableName = field.getMappingRepository().getDBDictionary(). getFullIdentifier(field.getTable(), true); ClassMapping def = field.getDefiningMapping(); setColumnIO(field.getJoinColumnIO()); if (field.getJoinForeignKey() != null && def.getTable() != null) syncForeignKey(field, field.getJoinForeignKey(), field.getTable(), def.getTable()); _outer = field.isJoinOuter(); syncIndex(field, field.getJoinIndex()); syncUnique(field, field.getJoinUnique()); syncJoinTableUniques(field, field.getJoinTableUniques()); syncOrderColumn(field); syncStrategy(field); }