File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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?
I agree. Here's the link:
subject: distinct in qbc
Similar Threads
.DISTINCT_ROOT_ENTITY or distinct-keyword
insert unique name into the table
select new constructor in JPA/Hibernate with DISTINCT NOT WORK!
second highest value
Hibernate Hell