This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes distinct in qbc Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "distinct in qbc" Watch "distinct in qbc" New topic

distinct in qbc

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
Does anyone know, how I can set the distinct-clause for all rows in Hibernate QBC ?:

with this:

I get this sql:

But I want to have this

How can I do that in qbc?
It is sorta covered in the JavaRanch Style Guide.
subject: distinct in qbc
It's not a secret anymore!