Jakarta Persistence (JPA) Method
AbstractQuery<T> distinct(
boolean distinct
)
Specify whether duplicate query results are eliminated. A true value will cause duplicates to be eliminated. A false value will cause duplicates to be retained. If distinct has not been specified, duplicate results must be retained.
- Parameters:
distinct- boolean value specifying whether duplicate results must be eliminated from the query result or whether they must be retained
- Returns:
- the modified query.
- Since:
- Jakarta Persistence (JPA) 1.0