*/
public final void merge(final Field field) throws GeneratorException {
if (field == null) {
String msg = "Field to merge is missing.";
LOG.error(msg);
throw new GeneratorException(msg);
}
if (!equals(getName(), field.getName())) {
String msg = "Name of field differs from: " + getName();
LOG.error(msg);
throw new GeneratorException(msg);
}
if (!equals(getTable(), field.getTable())) {
String msg = "Table of field differs from: " + getTable().getName();
LOG.error(msg);
throw new GeneratorException(msg);
}
if (_isIdentity != field._isIdentity) {
LOG.warn("Merge table: Field 'identity' attributes are different");
}