diff --git a/hibernate-core/src/main/java/org/hibernate/tool/schema/extract/spi/NameSpaceTablesInformation.java b/hibernate-core/src/main/java/org/hibernate/tool/schema/extract/spi/NameSpaceTablesInformation.java index f7342ef4a2a7..96d596e5c536 100644 --- a/hibernate-core/src/main/java/org/hibernate/tool/schema/extract/spi/NameSpaceTablesInformation.java +++ b/hibernate-core/src/main/java/org/hibernate/tool/schema/extract/spi/NameSpaceTablesInformation.java @@ -26,7 +26,15 @@ public void addTableInformation(TableInformation tableInformation) { } public TableInformation getTableInformation(Table table) { - return tables.get( identifierHelper.toMetaDataObjectName( table.getQualifiedTableName().getTableName() ) ); + String tableName = identifierHelper.toMetaDataObjectName( table.getQualifiedTableName().getTableName() ); + if ( tables.containsKey( tableName.toLowerCase() )) { + return tables.get( tableName.toLowerCase() ); + } + else if ( tables.containsKey( tableName.toUpperCase() ) ) { + return tables.get( tableName.toUpperCase() ); + } + + return null; } public TableInformation getTableInformation(String tableName) {