As per Spring Docs, I can write exact matching only for QBE. I need exact matching only but among a set of values (IN clause of query).
e.g.
Person p = new Person();
p.setId(); // need to match among set of ids.
Example.of(p);
Is this somehow achievable with QBE or am I totally down the wrong path?
Something like :
Page<S> findByIdIn(List<Integer> ids, Example<S> e, Pageable p)
best of both worlds?
What I really need, dynamic query based on multiple fields (in possible combinations, say id in (1,2,4), status=open, appointmentDate < today) along with pagination and sorting. Is specification the only way to go apart from native query?
findByIdIn(List ids, Example – Sachin Sharma Jan 30 '18 at 18:39e, Pageable p)