From: <no...@at...> - 2005-08-16 18:21:22
|
The following comment has been added to this issue: Author: John Ramkawsky Created: Tue, 16 Aug 2005 1:21 PM Body: It seems you may be able to accomplish what you want by using setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY). See: http://www.hibernate.org/hib_docs/api/net/sf/hibernate/Criteria.html#setResultTransformer(net.sf.hibernate.transform.ResultTransformer) --------------------------------------------------------------------- View this comment: http://opensource.atlassian.com/projects/hibernate/browse/HB-520?page=comments#action_19372 --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/browse/HB-520 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-520 Summary: Add Distinct to Criteria API Type: New Feature Status: Unassigned Priority: Minor Original Estimate: Unknown Time Spent: Unknown Remaining: Unknown Project: Hibernate2 Components: core Versions: 2.1 rc1 Assignee: Reporter: Stephen Owens Created: Thu, 4 Dec 2003 7:08 AM Updated: Tue, 16 Aug 2005 1:21 PM Environment: Hibernate 2.1+, (Any DB) Description: Need the ability to specify that results of a Criteria query should be 'DISTINCT', especially when joining to a collection. So the Criteria equivalent of the HQL statement "select distinct parent from Parent as parent join Parent.children as child where child.age>5" --------------------------------------------------------------------- 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 |