use of org.jooq.meta.jaxb.SyntheticIdentityType in project jOOQ by jOOQ.
the class DefaultColumnDefinition method isSyntheticIdentity.
@SuppressWarnings("unused")
private static boolean isSyntheticIdentity(DefaultColumnDefinition column) {
AbstractDatabase db = (AbstractDatabase) column.getDatabase();
for (SyntheticIdentityType id : db.getConfiguredSyntheticIdentities()) {
for (TableDefinition t : db.filter(singletonList(column.getContainer()), id.getTables())) {
for (ColumnDefinition c : db.filter(singletonList(column), id.getFields())) {
log.info("Synthetic identity", column.getQualifiedName());
db.markUsed(id);
return true;
}
}
}
return false;
}
Aggregations