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 812e8aecdc..3b213e54ce 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 @@ -3570,6 +3570,7 @@ public class ModelBinder { : FetchMode.JOIN ); + elementBinding.setForeignKeyName( elementSource.getExplicitForeignKeyName() ); elementBinding.setReferencedEntityName( elementSource.getReferencedEntityName() ); if ( StringHelper.isNotEmpty( elementSource.getReferencedEntityAttributeName() ) ) {