I need to fetch data from a table with conditions like, select * from table where (name LIKE '%xxx%' OR name LIKE '%yyy%' OR name LIKE '%xy%')
JPA repository class I have written is like
public List<Object> findByNameContaining(String[] name);
which is always returning null, but when I pass only one string as param then Im getting the response,
public List<Object> findByNameContaining("xxx");
How can I pass list of objects in the param of findByNameContaining()
method.
Below are the links which I referred, which uses only single string object in the parameter