I want the user to be able to specify the limit (the size of the amount returned) and offset (the first record returned / index returned) in my query method.
public interface EmployeeRepository extends JpaRepository {
@Query(value="SELECT e FROM Employee e WHERE e.name LIKE ?1 ORDER BY e.id offset ?2 limit ?3", nativeQuery = true)
public List findByNameAndMore(String name, int offset, int limit);
}