HBM2DDL does not use described name for foreign key in join inheritance

Description

in case of Joined inheritance, my superclass is:

And child is:

but when creating schema using hbm2ddl=create, described foreign key name is ignored:

Hibernate: alter table ARC_USER add constraint FKdeatoofkeuemefs49cnk3tm4p foreign key (USER_ID) references ARC_PERSON_ROLE

while expected is:

Hibernate: alter table ARC_USER add constraint ARC_FK_PERSON_ROLE_OF_USER foreign key (USER_ID) references ARC_PERSON_ROLE

Environment

Hibernate 5.0.3 - linux - JDK 8u66

Assignee

Andrea Boriero

Reporter

Mohsen Kashi

Fix versions

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure