Is there a way to eager fetch a lazy relationship through the Predicate API in QueryDSL?

后端 未结 2 1445
暗喜
暗喜 2021-02-01 10:53

I am using the QueryDslPredicateExecutor from Spring Data JPA project, and I am facing the need to eager fetch a lazy relation. I know that I can use a native JPA-Q

2条回答
  •  渐次进展
    2021-02-01 11:04

    Spring data has introduced JPA Entity Graph support. Beware that is does not currently work with graphs that are traversed via EmbeddedIds.

提交回复
热议问题