From: <leg...@at...> - 2004-12-30 11:07:47
|
The following comment has been added to this issue: Author: Lu=C3=ADs Miranda Created: Thu, 30 Dec 2004 5:07 AM Body: I am using this patch and it works well. However, since subselects are not = supported by Criteria, I find that the count() method is not as useful as i= t could be because the result of running the query can contain duplicates. How much effort would it be to implement a count("myProperty") method that = would perform a select count(distinct 'myProperty') statement? Or is there = a different way to achieve the same effect? --------------------------------------------------------------------- View this comment: http://opensource.atlassian.com/projects/hibernate/browse/HB-474?page=3Dc= omments#action_15419 --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/browse/HB-474 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-474 Summary: adding Criteria.count() method Type: Patch Status: Unassigned Priority: Major Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: Hibernate2 Components:=20 core Versions: 2.1 2.1 rc1 Assignee:=20 Reporter: Chris Nelson Created: Sun, 16 Nov 2003 12:53 PM Updated: Thu, 30 Dec 2004 5:07 AM Description: Adds a count() method to the Criteria class that does a modified query to r= eturn the count without returning entire query. --------------------------------------------------------------------- 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 |