On Jul 22, 2004, at 10:21 AM, Kunal Parikh wrote:

Do you guys think it is worthwhile to add a resultsCount() method in Criteria, that'll do a count(*) using the same where clause and return an Integer ?

I would like to code this functionality in, if people on this list validate the concept.

The problem is that we would need full projection queries and aggregation on the Criteria to cleanly implement this. Here are some patches: http://opensource.atlassian.com/projects/hibernate/browse/HB-474


--
Christian Bauer
+49 171 455 66 53

Hibernate
[EMAIL PROTECTED]
http://hibernate.org

JBoss Inc
[EMAIL PROTECTED]
http://jboss.com



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to