-->
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: Left join with criteria API
PostPosted: Wed Oct 18, 2006 12:17 pm 
Beginner
Beginner

Joined: Mon Mar 14, 2005 4:16 pm
Posts: 27
Hi, is it possible to create a LEFT JOIN relationship with the criteria API. I am trying to do that one of the relations declared with createAlias(...) uses a left join. Is that possible?

Thanks,

Bruno


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 19, 2006 4:23 am 
Beginner
Beginner

Joined: Mon Mar 14, 2005 4:16 pm
Posts: 27
Ok, the thing is that I was using for that case a DetachedCriteria. If you use the normal Criteria you have the method createCriteria which accepts a int parameter with the Join Type, so I have changed a bit my code to not to use the DetachedCriteria in that case....

Cheers,

Bruno


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.