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.