From fa4e1a04ed401058426a45cf8aa15d7a805a5e69 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Tue, 27 Oct 2015 17:25:39 +0000 Subject: [PATCH] HHH-10169 - Fix Hibernate ignores foreign-key name in hbm --- .../hibernate/boot/model/source/internal/hbm/ModelBinder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/ModelBinder.java b/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/ModelBinder.java index 57670c64af..d9cf898352 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/ModelBinder.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/ModelBinder.java @@ -621,7 +621,7 @@ public class ModelBinder { } } ); - + keyBinding.setForeignKeyName( entitySource.getExplicitForeignKeyName() ); // model.getKey().setType( new Type( model.getIdentifier() ) ); entityDescriptor.createPrimaryKey(); entityDescriptor.createForeignKey();