Я читаю официальный документ Spring (https://docs.spring.io/spring-data/jpa/docs/current/reference/html/)
In findByAgeIn(Collection<Age> ages) … where x.age in ?1
NotIn findByAgeNotIn(Collection<Age> ages) … where x.age not in ?1
Моя ошибка:
Caused by: java.lang.NoSuchMethodError: com.project.dao.DeviceRepository.findBySiteAndTypeIn(Lcom/project/model/Site;Ljava/util/List;)Ljava/util/List;
Я пытаюсь использовать Spring CrudRepository с устройством поиска, где типы в списке:
public interface DeviceRepository extends CrudRepository<Device, Long> {
List<Device> findBySiteAndTypeIn(Site site, List<String> types);
}
Этот код в порядке, но без списка:
public interface DeviceRepository extends CrudRepository<Device, Long> {
List<Device> findBySiteAndType(Site site, String type);
}