Finder methods with support for pagination

3 views
Skip to first unread message

Lucio Benfante

unread,
Nov 16, 2007, 9:37:16 AM11/16/07
to paranco...@googlegroups.com
Hi,
I just committed the support for pagination for the finder methods.

It uses annotation on the method parameters, just like Dynamic Finders
of warp-persist.

So now you can define a method of a DAO like the following:

List<Person> findByLastName(String lastName, @FirstResult int
firstResult, @MaxResults int maxResults);

For a more complete explanation, read the updated how-to:

http://www.parancoe.org/articles/2007/08/28/how-to-add-finder-methods-to-parancoe-daos/

Regards,
Lucio

--
Lucio Benfante
JUG Padova http://www.parancoe.org ...have a look at it!
www.jugpadova.it

Reply all
Reply to author
Forward
0 new messages