Skip to content

Commit 32fce20

Browse files
committed
HHH-10169 - Fix Hibernate ignores foreign-key name in hbm <joined-subclass>
1 parent 6c72d0d commit 32fce20

File tree

1 file changed

+1
-1
lines changed
  • hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/hbm/ModelBinder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ public Identifier determineImplicitName(LocalMetadataBuildingContext context) {
621621
}
622622
}
623623
);
624-
624+
keyBinding.setForeignKeyName( entitySource.getExplicitForeignKeyName() );
625625
// model.getKey().setType( new Type( model.getIdentifier() ) );
626626
entityDescriptor.createPrimaryKey();
627627
entityDescriptor.createForeignKey();

0 commit comments

Comments
 (0)