Workaround for those affected: change the visibility of the field annotated with @Embedded/ @EmbeddedId to protected (or the default package-private visibility if the mapped superclass and subclass are in the same package). This will cause Hibernate ORM to generate different bytecode unaffected by this bug. |