-->
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.  [ 1 post ] 
Author Message
 Post subject: Criteria left join subquery
PostPosted: Sat Nov 14, 2009 7:30 pm 
Newbie

Joined: Sat Nov 14, 2009 7:27 pm
Posts: 1
How can I use the Criteria class to create a query like this.

select
this_.ID_UTENTE as y0_,
this_.NOME as y1_,
this_.COGNOME as y2_,
this_.MAIL as y3_,
tamicisfor1_.STATO as y4_ ,
from
sporg.t_a_utenti this_
left outer join
(select * from sporg.t_amici where (
t_amici.ID_UTENTE_AMICO=?)
)tamicisfor1_
on this_.ID_UTENTE=tamicisfor1_.ID_UTENTE

the problem is join with subquery.

TNX a LOT


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

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.