Add Distinct to Criteria API

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"

Environment

Hibernate 2.1+, (Any DB)

Status

Assignee

Unassigned

Reporter

Stephen Owens

Labels

None

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Affects versions

2.1 rc1

Priority

Minor
Configure