How does DISTINCT work when using JPA and Hibernate February 28, 2023 by Tarik You are close. select DISTINCT(c.name) from Customer c