I need to do something like this with JpaRepository:
select * from table where ( propertyTwo like '%something%' or propertyThree like '%something%' or propertyFour like '%something%' ) and propertyOne in (a,b);
I currently do this:
findByPropertyOneInAndPropertyTwoContainingOrPropertyThreeContainingOrPropertyFourContaining(List param1, String param2, String param3, String param4)
But the method do something like this:
select * from table where propertyTwo like '%something%' or propertyThree like '%something%' or propertyFour like '%something%' and propertyOne in (a,b);
Which is different from the first sql query above.
How can I achieve the correct result?