Spring criteria query in clause
问题 I have the following problem with my springboot project: I'm creating a Criteria Query with the elements of a filter, this is the code: public List<IncidentMinimalPOJO> getPOJOFiltered(FilterPOJO filterValue) { List<IncidentMinimalPOJO> resultListPOJO = null; CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery<Incident> cq = cb.createQuery(Incident.class); List<Predicate> predicates = new ArrayList<>(); Root<Incident> root = cq.from(Incident.class); if (filterValue.getInfodesk() !=