Hi,
I have objects of type A belonging to objects of type B, defined as follows:
@MappedSuperclass public abstract class A { @Id @ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional=false) private B b; @Id @Column(length = 36) private String stringId; } @MappedSuperclass public abstract class B { @Id private String name; }
Both objects store with no error, but after they are retrived, the 'b' variable in all A objects is always null.
Regards,
Vladimir
PS: the same configuration works well with Hibernate