diff --git a/hibernate-core/src/main/java/org/hibernate/tool/schema/internal/SchemaCreatorImpl.java b/hibernate-core/src/main/java/org/hibernate/tool/schema/internal/SchemaCreatorImpl.java index bc4d806b2f..d6b9687ccd 100644 --- a/hibernate-core/src/main/java/org/hibernate/tool/schema/internal/SchemaCreatorImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/tool/schema/internal/SchemaCreatorImpl.java @@ -316,9 +316,13 @@ public class SchemaCreatorImpl implements SchemaCreator { } - for ( Table table : namespace.getTables() ) { - + if ( !table.isPhysicalTable() ){ + continue; + } + if ( !schemaFilter.includeTable( table ) ) { + continue; + } // indexes final Iterator indexItr = table.getIndexIterator(); while ( indexItr.hasNext() ) {