Thank you. I got this all working but in order to get the total number of pages I'm doing a select count(1) from tableA first. And since my organization requires no raw sql this means a whole extra stored procedure.
Is there anyway to write just 1 stored procedure that returns the first result set with just the count, and the 2nd result set with all the data? Can hibernate handle the multiple result sets from JDBC?
How would I explain in the mapping doc to store the count in one var called count and store the rest as objects in a list?
The issues with 2 stored proecures becomes serious when the logic to do the where clause gets complex. We have to duplicate this code and then remember to make changes in two places.
Thanks.
-Andrew
Shopzilla.com
http://losangeles.craigslist.org/sof/94384708.html