JPA AssociationOverrideS @ForeignKey not applied

Description

NOT INCLUDING a test case right now as I like to hear about your opinion on this first. And, considering that your are familiar with the code, that should be rather easy to do, or isn't it?

Having a class hierarchy like so

AbstractEntity.java

ReferencedEntity.java

ConcreteEntity.java

persistence.xml

The overridden foreign key for the AbstractEntity#ref property is never applied and hibernate will use the default foreign key for all derived entity classes.

Having debugged a little bit, it seems that overriding foreign key names is not yet supported as overriding for example nullable does work.

Since I have a rather large number of entities for my next project that all derive from the same mapped superclass, not having this feature is quite a bummer as I now must refactor all such associations into the concrete entity classes. And these are quite a lot. As a last resort, I can always also hand craft the schema, but this means additional workflow overhead...

Environment

Debian Linux Stretch, Latest Oracle Java 1.8 JDK

Assignee

Unassigned

Reporter

CarstenC

Labels

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Suitable for new contributors

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Priority

Major
Configure