OpenJPA - lazy fetching does not work
问题 I have a specific problem with an unit test using embedded OpenEJB container. I have a bi-directional relation between two classes. In one direction the relation works properly, but in the opposite direction the relation works only in EAGER-mode. In LAZY-mode the field section stays null. The code snipped follows: @Entity @Table(name="tracks") class TrackEntity implements Track { @Id private int trackNumber; @OneToMany(mappedBy = "track") private HashSet<SectionEntity> sections; public