For now, at least with the Spring Data JPA, you can make that problem disappear using spEL {{((:#
= true) OR role IN (:filterByRole))}}