Iterator<?> subIter = table.getForeignKeyIterator();
while (subIter.hasNext()) {
ForeignKey fk = (ForeignKey) subIter.next();
if (fk.isPhysicalConstraint()) {
// collect the drop key constraint
dropForeignKeysSql.add(fk.sqlDropString(dialect, catalog, schema));
createForeignKeysSql.add(fk.sqlCreateString(dialect, mapping, catalog, schema));
}
}
}
}