I am trying to create query like:
SELECT *FROM user WHERE name = ANY (VALUES ('Name1'), ('Name2') ...)
Can anyone help me to understand how I can implement it as native @Query in JPA repository?
@Query(value = "SELECT u FROM User u where u.name = ANY **.....**", native = true)
User findUsersByName(List<String> names);
Now I can't find solution to set names as VALUES ('Name1'), ('Name2')...