-->
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.  [ 3 posts ] 
Author Message
 Post subject: When distinct will be available in Criteria?
PostPosted: Tue Dec 28, 2004 7:31 am 
Newbie

Joined: Wed Nov 10, 2004 11:25 am
Posts: 11
Hello.
Who knows, when developers are going to implement distinct in Criteria?

Thanks.

_________________
Vladimir
www.devitnow.com


Top
 Profile  
 
 Post subject: When distinct will be available in Criteria?
PostPosted: Tue Dec 28, 2004 12:25 pm 
Take a look at the javadoc for Criteria.setResultTransformer(). When it is set to DISTINCT_ROOT_ENTITY only distinct root entities will be returned.


Top
  
 
 Post subject:
PostPosted: Wed Dec 29, 2004 8:27 am 
Newbie

Joined: Wed Nov 10, 2004 11:25 am
Posts: 11
Thanks.
I'll create my own ResultTranslater.
Why it (distinct) isn't done on SQL side? It might increase performance.

Thanks.

_________________
Vladimir
www.devitnow.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.