I am using the findAll passing Example and Pageable.. How can I use IN clause? for example in a Class I have a property location. i want to pass 2 location as parameters.
Thanks.
Here is the findAll im using:
public <S extends T> Page<S> findAll(Example<S> example, Pageable pageable) {
SimpleJpaRepository.ExampleSpecification<S> spec = new SimpleJpaRepository.ExampleSpecification(example);
Class<S> probeType = example.getProbeType();
TypedQuery<S> query = this.getQuery(new SimpleJpaRepository.ExampleSpecification(example), probeType, (Pageable)pageable);
return (Page)(pageable == null ? new PageImpl(query.getResultList()) : this.readPage(query, probeType, pageable, spec));
}