@PrimaryKeyJoinColumn name ignored in Subclass
Description
Activity
Show:

Gavin King May 16, 2024 at 2:26 PM
Nope, you’ll have to do the work to nail this down and provide a simple, runnable test case.
Otherwise I will close this issue.

Craig Greenhalgh May 16, 2024 at 2:24 PM
Hi we are working in an offline environment, I will import 6.6 but this will take sometime to get approved. Can you replicate this in 6.4.4 ? Thanks for your help

Gavin King May 16, 2024 at 2:12 PMEdited
I tried exactly the code you posted in Hibernate 6.6 and could not reproduce this error. @PrimaryKeyJoinColumn
was definitely not ignored:
Similar to
I have a class
Contacts PK is ‘id’
And several subclasses such as
There is a FK column in customer_contact, contact_id that maps back to id in contact.
Since upgrading to v6 (as part on SpringBoot 2 to 3 upgrade) I now get the error
The name attribute in
PrimaryKeyJoinColumn
is being ignored