in case of Joined inheritance, my superclass is:
[ {code:java} @Inheritance(strategy = InheritanceType.JOINED) @DiscriminatorColumn(name = "PERSON_ROLE_TYPE_ID", discriminatorType = DiscriminatorType.INTEGER) public class PersonRole extends RhEntity { . . . ] {code}
And child is: [ {code:java} @DiscriminatorValue("8") @PrimaryKeyJoinColumn(name = "USER_ID", foreignKey = @ForeignKey(name = "ARC_FK_PERSON_ROLE_OF_USER")) public class User extends PersonRole { . . . ] {code}
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 ] * |
|