Jakarta Persistence (JPA) Method
AbstractQuery<T> having(
Expression<Boolean> restriction
)
Specify a restriction over the groups of the query. Replaces the previous having restriction(s), if any.
- Parameters:
restriction- a simple or compound boolean expression
- Returns:
- the modified query.
- Since:
- Jakarta Persistence (JPA) 1.0