Feb 10th, 2012, 08:47 AM
QueryDSL eager load
Is there a way to eager load a JPA association with Spring Data and QueryDSL?
I'd like to map all relationships as lazy, and then eager load only the relevant ones per query.
It looks like it's possible to do this with JPA Criteria Specifications, and with the @Query annotation we can always specify INNER JOIN FETCH, but I can't find a way to do it with QueryDSL.
QueryDSL's JPAQuery supports inner join, but that's not exposed by Spring Data, right?
Last edited by bradcupit; Feb 10th, 2012 at 09:02 AM.
Tags for this Thread