List<Join> keys = schema.foreignKeys(linkTableName, DatabaseSchemaInspector.KEYS_IMPORTED);
Join join1 = keys.get(0);
Join join2 = keys.get(1);
if (!filter.matches(join1.table1()) || !filter.matches(join1.table2()) ||
!filter.matchesAll(join1.attributes1()) || !filter.matchesAll(join1.attributes2()) ||
!filter.matches(join2.table1()) || !filter.matches(join2.table2()) ||
!filter.matchesAll(join2.attributes1()) || !filter.matchesAll(join2.attributes2())) {
log.info("Skipping link table " + linkTableName);
return;
}
log.info("Generating d2rq:PropertyBridge instance for table " + linkTableName.qualifiedName());