I have an entity which contains:
@OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL, mappedBy = \"assessment\") @OrderBy(value = \"order ASC\") pr
If you are using Hibernate and you do not care using Hibernate annotations :
Annotate your collection fields with:
@LazyCollection(LazyCollectionOption.FALSE)
Remember to remove the fetchType attribute from the @OneToMany annotation.