Hi all. While preparing for Spring boot 2.7 → 3.1 migration (including Hibernate 5.7 → 6.2), we are struggling with a problem that seems difficult to solve.
Blame to us, we did not pay attention to the precautions while assigning @Inheritance
d @Entity
as target of @OneToMany
; however the problem is that Hibernate 5 allows this, so at this point it causes a serious blocker in our migration plan.
So we are considering a miserable idea that recoding the infrastructure code related to JPA and we are wondering if there are anyone who are experiencing similar difficulties.
Error messages and entity definitions are in the attached gist link(https://gist.github.com/FrancescoJo/ca72628ee7be42b6f49d2f6b90dbfa26). Any advice would be great, so please let us know.
Thank you all for reading.
For reference, we read Migration Guide 3.0: Hibernate ORM 5 to 6 migration · quarkusio/quarkus Wiki · GitHub as well before migration work but we couldn’t find any related content. I believe that the part causing the problem is “4. Better determination of unnecessary joins (secondary tables, inheritance tables)” in the “Generated SQL” section, but it is difficult to determine the detailed cause.