Have used containing method in repository for %LIKE% SQL equal in JPA, as below,
Page<Obj> findByNameContaining(String name, Pageable pageable);
which will work like below,
select * from Obj where name like '%John%';
But how do i pass the List<String>
names which would query like below using JPA,
select * from Obj where name like '%John%' or name like '%Jiva%' or name like 'etc' .....;
Is there any Spring JPA way for this? i also checked Specification classes too, is that the only way of doing this or am i missing any easy ways or any other dynamic query is recommended?