HHH-10247 - Fix Hibernate ignores foreign-key attribute name in hbm <many-to-many>
This commit is contained in:
parent
8c0c98fa07
commit
c0528b7079
|
@ -3570,6 +3570,7 @@ public class ModelBinder {
|
|||
: FetchMode.JOIN
|
||||
);
|
||||
|
||||
elementBinding.setForeignKeyName( elementSource.getExplicitForeignKeyName() );
|
||||
|
||||
elementBinding.setReferencedEntityName( elementSource.getReferencedEntityName() );
|
||||
if ( StringHelper.isNotEmpty( elementSource.getReferencedEntityAttributeName() ) ) {
|
||||
|
|
Loading…
Reference in New Issue