firstFkColumn = table.getColumn(firstTableName + "_id");
secondFkColumn = table.getColumn(secondTableName + "_id");
}
// TODO - AHK - Handle the case where the tables are null
// TODO - AHK - Put join name computation in a method
firstTable.addArray(new DBJoinArrayImpl(joinName == null ? secondTableName + "s" : joinName, firstTable, secondTable, table, firstFkColumn, secondFkColumn));
if (!firstTable.equals(secondTable)) {
secondTable.addArray(new DBJoinArrayImpl(joinName == null ? firstTableName + "s" : joinName, secondTable, firstTable, table, secondFkColumn, firstFkColumn));
}
} else {
for (DBColumnImpl column : table.getColumns()) {
if (column.isFK()) {
String fkTargetName = column.getFKTargetName();