I would like to write a like query in JpaRepository but it is not returning anything :
LIKE \'%place%\'-its not working.
LIKE
Found solution without @Query (actually I tried which one which is "accepted". However, it didn't work).
Have to return Page instead of List:
public interface EmployeeRepository
extends PagingAndSortingRepository {
Page findAllByNameIgnoreCaseStartsWith(String name, Pageable pageable);
}
IgnoreCase part was critical for achieving this!