'Multicolumn , complex WHERE clause in QueryDSL with both OR, AND along with subquery

I have a query like

SELECT * 
FROM filter_definition 
WHERE expression = 'expression-1' 
 AND (company_id = 1 OR company_id = 5) 
 AND status = 'PENDING';

how to represent this with the help of Querydsl?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source