JPQL Distinct
The DISTINCT operator is functionally equivalent to the SQL operator of the same name. Once the result set is collected, duplicate values (using entity identity if the query result type is an entity) are removed so that only unique results are returned.
También se puede hacer distinct
sobre las propiedades de un objeto, cuando estas corresponden a columnas de la bd aplica un sql distinct
.