tr wrote:
Examples from the "Hibernate in Action" and from Hibernate documentation don't work. I tried all of them.
It is hard to believe all of the examples for distinct are wrong in the edited, corrected, tested, and published book by the Hibernate developers.
It is far more likely to be a problem in your setup (mappings,etc.). However, "don't work" is a very vague term, and you didn't post your mappings and code as the form requires. Please post these, and what EXACTLY goes wrong (again, as directed in the posting guidelines).