How to implement Left
or right outer join
in QueryDsl
. A simple example is helpful.
You should use leftJoin
method for that sake. Eg:
queryUtil
.createJpaQuery()
.from(t1)
.leftJoin(t1.t2, t2)
.fetchJoin()
.where(t2.a.eq(t1.t2.a))
.fetchAll()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.