JPA Method
in javax.persistence.criteria.Subquery

Subquery<T> distinct(
  boolean distinct
)


Specify whether duplicate query results will be 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. This method only overrides the return type of the corresponding AbstractQuery method.
Parameters:
distinct - boolean value specifying whether duplicate results must be eliminated from the subquery result or whether they must be retained
Return:
the modified subquery.
Since:
JPA 2.0