how to use EntityGraph with querydsl 4.1.3??? #2073

Closed
eungchang opened this Issue Jan 1, 2017 · 1 comment

Projects

None yet

1 participant

@eungchang

i know this way works on querydsl 3
EntityGraph bookGraph = em.getEntityGraph("graph.items.book");
query.setHint("javax.persistence.fetchgraph", bookGraph);

but,, i don't know how to do it wih JPAQueryFactory. querydsl 4

please let me know it.

@eungchang

List list = queryFactory.selectFrom(qbook).setHint(name, value)

i just found upper thing. can i use this one instead below???

EntityGraph bookGraph = em.getEntityGraph("graph.items.book");
query.setHint("javax.persistence.fetchgraph", bookGraph);

@eungchang eungchang closed this Jan 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment