Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 QueryDSL where 子句中以形式表达:
WHERE (E1 AND E2) OR (E3 AND E4)
E1..E4 是任意布尔表达式。关键是要在括号内开始查询,因此是 (E1 AND E2)。
where(e1.and(e2).or(e3.and(e4)))