public DataObject get(String tablePropertyName) {
return (DataObject) objectsByTableName.get(tablePropertyName);
}
void processRelationships() {
MappingWrapper wrapper = metadata.getConfigWrapper();
if (wrapper.hasRecursiveRelationships()) {
processRecursiveRelationships(wrapper);
return;
}
Iterator i = metadata.getRelationships().iterator();
while (i.hasNext()) {
Relationship r = (Relationship) i.next();
DataObject parentTable = get(wrapper.getTableTypeName(r.getPrimaryKeyTable()));
DataObject childTable = get(wrapper.getTableTypeName(r.getForeignKeyTable()));
if (this.logger.isDebugEnabled()) {
this.logger.debug("Parent table: " + parentTable);
this.logger.debug("Child table: " + childTable);
}