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

Popular posts from this blog

php - Wordpress: Link a post to posts of another category manually -

javascript - Complete OpenIDConnect auth when requesting via Ajax -

apache - PHP Soap issue while content length is larger -