Message:
The following issue has been closed.
Resolver: Gavin King
Date: Wed, 10 Dec 2003 11:56 PM
this is a dupe
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-543
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-543
Summary: Add method to return count(*) in Criteria
Type: New Feature
Status: Closed
Priority: Major
Resolution: DUPLICATE
Project: Hibernate2
Assignee:
Reporter: fafnirchen
Created: Wed, 10 Dec 2003 11:09 PM
Updated: Wed, 10 Dec 2003 11:56 PM
Environment: w2k
Description:
I used Criteria to query and I call method setFirstResult, setMaxResults to return some records instead of return all records. I am not only want to get these records but also want to get the total num of records fit my query condition without setFirstResult, setMaxResults. Now I have no simple way to get count(*) by Criteria. I can only re-compose query condition using hql to count(*). That means I have to compose query condition with two ways:Criteria, Hql. One for getting result, the other for get count(*).
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|