Marcin, this thread might be of interest to you ...
http://mail-archives.apache.org/mod_mbox/cayenne-dev/200705.mbox/browser
Look at the "Paging and SQL queries" thread on May 25.
/dev/mrg
This archive was generated by hypermail 2.0.0 : Fri Jun 22 2007 - 09:11:25 EDT