java - JPA pagination for different methods -
is possible implement pagination other method except findall(pageable)
?
example, if have own method findbynameorage
:
public interface jpapersondao extends jparepository<person, long> { list<person> findbynameorage(string name, int age); }
yes possible .
page<person> findbynameorage(string name, int age,pageable pageable);
Comments
Post a Comment