Hello,
Maybe my question is stupid but I'm wondering the following thing :
If I want to limit my search results (for instance I just want the 50 first records) by using DetachedCriteria, I do :
Code:
List<Object> liste = getHibernateTemplate().findByCriteria(crit,0,50);
Everything is OK.
However, I would like to get the number total of records of the request without a COUNT before.
Clearly : just call one time findByCriteria and get the total size and my list (which is limited).
Is that possible?
Thanks in advance !