-->
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: Join with condition
PostPosted: Wed Jun 17, 2009 8:53 am 
Newbie

Joined: Fri Mar 27, 2009 4:40 am
Posts: 4
Hi all,

I would like to simulate the following query

select * from T2
left outer join T1 on T2.id = T1.t2_fk and condition

with criteria. I would like to recover all the rows of T2.

If I try with criteria.createAlias("zz", "yy", LEFT_JOIN).add(Restriction[condition]) the simulated query is

select * from T2
left outer join T1 on T2.id = T1.t2_fk
WHERE condition

Any idea?

Many thanks in advance.


Top
 Profile  
 
 Post subject: Re: Join with condition
PostPosted: Tue Jul 21, 2009 11:19 am 
Newbie

Joined: Mon Jul 20, 2009 11:14 am
Posts: 2
Have you found a solution?


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.