JavaSymbolName fieldName = new JavaSymbolName(
getInflectorPlural(DbreTypeUtils
.suggestFieldName(foreignTableName)) + fieldSuffix);
JavaSymbolName mappedByFieldName = null;
if (exportedKey.getReferenceCount() == 1) {
final Reference reference = exportedKey.getReferences()
.iterator().next();
mappedByFieldName = new JavaSymbolName(
DbreTypeUtils.suggestFieldName(reference
.getForeignColumnName()));
}
else {
mappedByFieldName = new JavaSymbolName(
DbreTypeUtils.suggestFieldName(table) + fieldSuffix);