How to write JPA query with boolean condition January 6, 2024 by Tarik Use the following form: SELECT e FROM Employee e WHERE e.active = TRUE See the docs for more info.