Skip to:
In Hibernate-Core 6.1.7 we could use inheritance in IdClasses like so:
But since 6.2.x this will raise a cryptic NPE:
Instead of an NPE, I would expect a more helpfull message, i.e.:
Illegal embeddable valued model definition: com.example.PK.class.
I think adding @MappedSuperclass to the ParentPrimaryKey class should fix your test case. We might consider a more informative error in this case, though I’m not sure how we would check this.
@MappedSuperclass
ParentPrimaryKey
In Hibernate-Core 6.1.7 we could use inheritance in IdClasses like so:
But since 6.2.x this will raise a cryptic NPE:
Expected Behavior
Instead of an NPE, I would expect a more helpfull message, i.e.: