Hello,
We have an entity with an optional relation modeled like this:
@Entity
@Table(name = "scheduledassignments", schema = "public")
public class ScheduledAssignment {
@OneToOne(mappedBy = "scheduledAssignment")
private SwapOffer swapOffer;
So this is the "opposite side" of the relation, SwapOffer has a foreign key to ScheduledAssignment. It is rare for us to need this field loaded. When we findList, the SwapOffer table is being left joined in and the Swap Offer ID selected. This join is really slowing things down. Is there any equivalent of "don't select/fetch" this field? I tried new FetchConfig().lazy() on the relation with no effect.
Is my only recourse to convert to raw sql?
Thanks.
/Daryl