I have a relationship similar to this one:
{code:java} @Entity public class EntityA { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; @OneToOne(cascade = ALL) @PrimaryKeyJoinColumn private EntityB mydata; {code}
and {code:java} @Entity public class EntityB { @Id private Integer id;
@MapsId @OneToOne @JoinColumn(name = "id", updatable = false) private EntityA a; {code}
and while everything worked fine until hibernate 5.3, it does not work anymore with 5.4, with this error:
Caused by: org.hibernate.id.IdentifierGenerationException: null id generated for:class EntityB |
|