You are close.
select DISTINCT(c.name) from Customer c
More Related Contents:
- having an exception when saving oracle type object in some entity
- How can I make a JPA OneToOne relation lazy
- org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when ‘hibernate.dialect’ not set
- Can someone explain mappedBy in JPA and Hibernate?
- When and why JPA entities should implement the Serializable interface?
- Spring Boot – Cannot determine embedded database driver class for database type NONE
- JPA : How to convert a native query result set to POJO class collection
- Why does JPA have a @Transient annotation?
- Spring-Data-Jpa Repository – Underscore on Entity Column Name
- How to persist a property of type List in JPA?
- Handling soft-deletes with Spring JPA
- Getting Database connection in pure JPA setup
- Hibernate and no PK
- When does the JPA set a @GeneratedValue @Id
- JPA @OneToOne with Shared ID — Can I do this Better?
- annotation to filter results of a @OneToMany association
- Parameter in like clause JPQL
- Hibernate/JPA – annotating bean methods vs fields [duplicate]
- Is it possible to dynamically define column names in Hibernate / JPA?
- Hibernate: “Field ‘id’ doesn’t have a default value”
- How to use @Transactional with Spring Data?
- @Basic(optional = false) vs @Column(nullable = false) in JPA
- No operator matches the given name and argument type(s). You might need to add explicit type casts. — Netbeans, Postgresql 8.4 and Glassfish
- What is Persistence Context?
- How to force Hibernate to return dates as java.util.Date instead of Timestamp?
- EclipseLink 2.7.0 and JPA API 2.2.0 – signature mismatch
- JPA Select latest instance for each item
- Spring Data + JPA with multiple datasources but only one set of Repositories
- java.lang.ClassNotFoundException: javax.persistence.Persistence cannot be found with JPA
- How to use Postgres JSONB datatype with JPA?