Select Query not working in NULL parameters JPA – Postgresql
I am using spring-data-jpa here is my query @Query(value = "select ea.* from employee ea where ids in (?1) and (?2 is null or country=?2) ", nativeQuery = true) Page<Employee> findByds(List<UUID> ids,String country ,Pageable pageable ); I want to get…