AbstractQuery<T> where(
List<Predicate> restrictions
)
Modify the query to restrict the query result according to the conjunction of the specified restriction predicates. Replaces the previously added restriction(s), if any. If no restrictions are specified, any previously added restrictions are simply removed.
- Parameters:
restrictions- a list of zero or more restriction predicates
- Return:
- the modified query
- Since:
- JPA 3.2