Left
또는 right outer join
을 구현하는 방법은 QueryDsl
입니다. 간단한 예제가 도움이됩니다.QueryDsl에서 왼쪽 또는 오른쪽 외부 조인을 구현하는 방법
0
A
답변
0
그 때문에 leftJoin
방법을 사용해야합니다. 예 :
queryUtil
.createJpaQuery()
.from(t1)
.leftJoin(t1.t2, t2)
.fetchJoin()
.where(t2.a.eq(t1.t2.a))
.fetchAll()
데이터 또는 쿼리를 게시하십시오. 정확한 해결책을 제공하는 데 도움이됩니다. –
http://stackoverflow.com/questions/28849713/querydsl-left-join-with-additional-conditions-in-on http://stackoverflow.com/questions/29836826/querydsl -how-to-make-left-join-by-column –
감사합니다, Prdp. 1) JPAQuery query = queryUtil.createJpaQuery() \t \t .from (t1) .leftJoin (t1.t2, t2) .on (t2.a.eq (t1.t2.a), 왼쪽 외부로 변경하는 방법 조인? 2) 두 테이블에 관계가 없으면 QueryDsl에서 조인 할 수 있습니까? – user1456650