you can also write your own RevengStrategy and
overwrite method foreignKeyToEntityName
for example :
Code:
public String foreignKeyToEntityName(String fk, TableIdentifier childTable, List arg2, TableIdentifier parentTable, List arg4, boolean arg5) {
if (mappingProps.containsKey(childTable.getName()+"."+fk)) {
return (String)mappingProps.getProperty(childTable.getName()+"."+fk);
} else {
StringBuffer name = new StringBuffer(tableToSimpleClassName(parentTable));
name.setCharAt(0, Character.toLowerCase(name.charAt(0)));
return name.toString();
}
}
you must also define a mapping(or hard code it). it can look like this in a property file
EMPLOYEE.FK_ADDRESS1=homeAddress
EMPLOYEE.FK_ADDRESS2=officeAddress