From 73df331415dc6d00e8874db61856b932bca7420b Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Sat, 30 Jul 2016 14:20:51 +0200 Subject: [PATCH] HHH-10937 - The generation of the drop schema does not filter sequence with schemaFilter --- .../org/hibernate/tool/schema/internal/SchemaDropperImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hibernate-core/src/main/java/org/hibernate/tool/schema/internal/SchemaDropperImpl.java b/hibernate-core/src/main/java/org/hibernate/tool/schema/internal/SchemaDropperImpl.java index 4ad198d4e9..c36b6cb716 100644 --- a/hibernate-core/src/main/java/org/hibernate/tool/schema/internal/SchemaDropperImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/tool/schema/internal/SchemaDropperImpl.java @@ -242,6 +242,9 @@ public class SchemaDropperImpl implements SchemaDropper { } for ( Sequence sequence : namespace.getSequences() ) { + if ( !schemaFilter.includeSequence( sequence ) ) { + return; + } checkExportIdentifier( sequence, exportIdentifiers ); applySqlStrings( dialect.getSequenceExporter().getSqlDropStrings( sequence, metadata ), formatter, options, targets ); }