private Column getEquivalentColumn(Column col, ClassMapping target,
String fieldName) {
fieldName = fieldName.substring(fieldName.indexOf('.') + 1);
FieldMapping field = target.getFieldMapping(fieldName);
if (field == null)
throw new MetaDataException(_loc.get("no-equiv-field",
new Object[]{ this, target, fieldName, col }));
Column[] cols = field.getColumns();
if (cols.length != 1)
throw new MetaDataException(_loc.get("bad-equiv-field",
new Object[]{ this, target, fieldName, col }));
return cols[0];
}