I have an entity Application.java, which in turn has a property
@Audit(changeTracker = AttributeValueListChangeTracker.class)
@OneToMany(cascade = { CascadeType.ALL }, orphanRemoval = true, targetEntity = AttributeValue.class)
@OrderBy
@JoinColumn(name = "application_id")
@LazyCollection(LazyCollectionOption.FALSE)
private List<AttributeValue> attributeValueList = new ArrayList<AttributeValue>();
This eager fetching of this property is posing a problem in performance. I cannot make it lazy as in some cases eager fetch is required. The case on which I am working doesn't require eager fetch. is there a way to make this property load lazy just for my case?