Iterator subIter = table.getForeignKeyIterator();
while ( subIter.hasNext() ) {
ForeignKey fk = ( ForeignKey ) subIter.next();
if ( fk.isPhysicalConstraint() ) {
// collect the drop foreign key constraint sql
dropForeignKeysSql.add( fk.sqlDropString(
dialect,
properties.getProperty(Environment.DEFAULT_CATALOG),
properties.getProperty(Environment.DEFAULT_SCHEMA) ) );
// and collect the create foreign key constraint sql
createForeignKeysSql.add( fk.sqlCreateString(