-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Criteria.DISTINCT_ROOT_ENTITY
PostPosted: Mon May 14, 2007 5:30 am 
Newbie

Joined: Wed Mar 28, 2007 7:30 am
Posts: 3
Hibernate version: 3.1

Ok, i understand that hibernate apply Criteria.DISTINCT_ROOT_ENTITY in memory, after execute query.
In hql, distinct word is executed on db level.
Is there any way how i can apply distinct in sql, when use Criteria API? (same behavior as HQL)

I am using simple inner join.


Last edited by nikran on Mon May 14, 2007 6:12 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon May 14, 2007 5:53 am 
Newbie

Joined: Wed Mar 28, 2007 7:30 am
Posts: 3
http://opensource.atlassian.com/project ... wse/HB-520


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.