JoinEnumerator.addTables(joins, tables);
Map<Table, TableSource> sources = new HashMap<>();
for (Joinable table: tables) {
if (table instanceof TableSource) {
TableSource tableSource = (TableSource)table;
sources.put(tableSource.getTable().getTable(), tableSource);
}
}
for (Joinable table: tables) {
if (table instanceof TableSource) {
TableSource tableSource = (TableSource) table;
checkFKParents (tableSource.getTable().getTable(), tableSource, sources, equivalencies);
}
}
}