SyntaxFix
Write A Post
Hire A Developer
Questions
Update: See the top-voted answer please.
My own is currently obsolete. Only kept here for historical reasons.
Distinct in HQL is usually needed in Joins and not in simple examples like your own.
See also How do you create a Distinct query in HQL