In a @AssociationOverride the foreignKey = @ForeignKey is not considered

Description

When declaring a mapping as follows:

the following schema is generated:

create table AT_ORDER_PRODUCT_EDIBLE (PRODUCT_ID bigint not null, ORDER_ID bigint not null)

create table ORDER (ORDER_ID bigint not null, primary key (ORDER_ID))

create table PRODUCT_EDIBLE (PRODUCT_ID bigint not null, primary key (PRODUCT_ID))

alter table AT_ORDER_PRODUCT_EDIBLE add constraint FKdf4hugoowbewaquofp33qo2nr foreign key (ORDER_ID) references ORDER

alter table AT_ORDER_PRODUCT_EDIBLE add constraint FKfhgnfkg0n1wvo4kho92awenu0 foreign key (PRODUCT_ID) references PRODUCT_EDIBLE

Environment

None

Assignee

Unassigned

Reporter

Andrea Boriero

Fix versions

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure