From 0cab17ad28d0742cce49e750e55d878fa9290f05 Mon Sep 17 00:00:00 2001 From: mehmetali2003 Date: Sun, 29 Jun 2025 17:01:43 +0300 Subject: [PATCH] HHH-14270 GroupedSchemaValidatorImpl / NameSpaceTablesInformation does not find different-case table information in case insensitive environment --- .../schema/extract/spi/NameSpaceTablesInformation.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) {