I finally was able to figure out a simple solution without the @Query
annotation.
List<People> findDistinctByNameNotIn(List<String> names);
Of course, I got the people object instead of only Strings. I can then do the change in java.
More Related Contents:
- Error creating bean with name ‘entityManagerFactory’ defined in class path resource : Invocation of init method failed
- Bypass GeneratedValue in Hibernate (merge data not in db?)
- How does the FetchMode work in Spring Data JPA
- How to fetch FetchType.LAZY associations with JPA and Hibernate in a Spring Controller
- No Dialect mapping for JDBC type: 1111
- @Transactional method called from another method doesn’t obtain a transaction
- How to set up default schema name in JPA configuration?
- Why does Hibernate disable INSERT batching when using an IDENTITY identifier generator
- Transaction marked as rollback only: How do I find the cause
- Spring data JPA and hibernate detached entity passed to persist on ManyToMany relationship
- Can I combine a @Query definition with a Specification in a Spring Data JPA repository method?
- When are connections returned to the connection pool with Spring JPA (Hibernate) Entity Manager?
- Could not commit JPA transaction: Transaction marked as rollbackOnly
- Change database schema during runtime based on logged in user
- Spring JpaRepository – Detach and Attach entity
- How to map sql native query result into DTO in spring jpa repository?
- Difference between save and saveAndFlush in Spring data jpa
- The onFlushDirty Hibernate Interceptor method is never called
- spring data jpa @query and pageable
- Hibernate, spring, JPS & isolation – custom isolation not supported
- Error creating bean with name ‘entityManagerFactory
- Spring, JPA, and Hibernate – how to increment a counter without concurrency issues
- Mapping JPA or Hibernate projection query to DTO (Data Transfer Object)
- java.lang.IllegalStateException: No transactional EntityManager available
- FetchMode join makes no difference for ManyToMany relations in spring JPA repositories
- TransactionRequiredException Executing an update/delete query
- Why should anybody put annotations on the getters or setters when using JPA to map the classes?
- How to configure transaction management for working with 2 different db in Spring?
- Hibernate using JPA (annotated Entities) and liquibase
- Spring 3.2.x with Java 8