I am using Spring to connect to the db. I have an interface extending CrudRepository Here is the query I want execute on the db: SELEC
CrudRepository
SELEC
@Query("SELECT DISTINCT name FROM people WHERE name NOT IN (:names)") List findNonReferencedNames(@Param("names") List names);