Skip to:
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
Fixed in master, 5.1, and 5.0.
PR https://github.com/hibernate/hibernate-orm/pull/1407
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