Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Object Relational Mapping
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Object Relational Mapping
distinct in qbc
nimo frey
Ranch Hand
Posts: 580
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Does anyone know, how I can set the distinct-clause for all rows in Hibernate QBC ?:
with this:
.setProjection(Projections.distinct(Projections.id()))
I get this sql:
select distinct ID from Entity e;
But I want to have this
select distinct * from Entity e;
How can I do that in qbc?
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
.DISTINCT_ROOT_ENTITY or distinct-keyword
second highest value
insert unique name into the table
select new constructor in JPA/Hibernate with DISTINCT NOT WORK!
Hibernate Hell
More...