Auto generate record ID class if no explicit @IdClass
Description
Activity
Show:
Gavin King December 5, 2024 at 6:35 PMEdited
Implemented by , but we still need to add a note to the documentation because otherwise nobody will know this exists!
Čedomir Igaly November 8, 2024 at 3:06 PM
Now I’ve added one idea for solution on Hibernate Core side
Čedomir Igaly November 8, 2024 at 1:18 PM
Of course, that is “TODO” in PR
Gavin King November 8, 2024 at 1:13 PM
But a core change would be necessary, no, because there’s no @IdClass
annotation, so Hibernate needs to know where to find it.
Čedomir Igaly November 8, 2024 at 1:08 PM
I’ve created quick solution on Hibernate Processor side in pull request #9220
It is working, and I’ve tried to change as less as possible, but I do not claim that this is best solution.
Additionally, I did not changed anything on Hibernate Core side.
Fixed
Details
Details
Assignee
Čedomir Igaly
Čedomir IgalyReporter
Yanming Zhou (quaff@github)
Yanming Zhou (quaff@github)Labels
Fix versions
Priority
Created November 8, 2024 at 7:34 AM
Updated February 13, 2025 at 10:16 AM
Resolved December 5, 2024 at 6:35 PM
I think it’s worthy as hibernate-specific feature first regardless of JPA.