From 44dc4e65951b98a98accce64dbadcc3b4f910817 Mon Sep 17 00:00:00 2001 From: Rayudu A L P Date: Tue, 12 Aug 2025 19:42:25 +0530 Subject: [PATCH] HHH-19707 - Include value column name in TableStructure InitCommand --- .../main/java/org/hibernate/id/enhanced/TableStructure.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/id/enhanced/TableStructure.java b/hibernate-core/src/main/java/org/hibernate/id/enhanced/TableStructure.java index 28262cb322aa..a99ed62e830c 100644 --- a/hibernate-core/src/main/java/org/hibernate/id/enhanced/TableStructure.java +++ b/hibernate-core/src/main/java/org/hibernate/id/enhanced/TableStructure.java @@ -330,8 +330,10 @@ public void registerExportables(Database database) { table.setOptions( options ); - table.addInitCommand( context -> new InitCommand( "insert into " - + context.format( physicalTableName ) + " values ( " + initialValue + " )" ) ); + table.addInitCommand( context -> new InitCommand( + "insert into " + context.format( physicalTableName ) + + " ( " + valueColumnNameText + " ) values ( " + initialValue + " )" + ) ); } }