how to implement Subqueries.rowCount(DetachedCriteria dc)?
When a DetachedCrieria has projections, we can not add count projections? how to get the row count of the DetachedCriteria result set? For example, HQL:
Code:
select count(*) from (select name, sum(grade) from score group by name).
For DetachedCriteria, how to implement Subqueries.rowCount(DetachedCriteria dc)?
Which class do I need to extend to get the generated JDBC SQL of DetachedCriteria, so that can I prepend
Code:
select count(*) from.
We do not like criteria.list().size() since there may be millions of records.
Thanks for help
Dave