-->
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: how to execute the subqueries with left join using HQL.
PostPosted: Wed Sep 02, 2009 10:40 am 
Beginner
Beginner

Joined: Fri Sep 28, 2007 4:58 am
Posts: 21
Location: Chennai, India
Hi,

i have an issue to execute the HQL query. the scenario is like this.

select * from ( select x.abc, y1.def, z.ghi from X x left outer join (select id from X where date=?) x1 on x1.id = x.id left outer join (select id, def from Y where date=?) y1 on y1.id = x.id inner join Z z on x.id = z.id;

please let me know executable query using HQL.

Thanks in Advance.

warm wishes
Purushotham

_________________
Purushotham Podaralla


Top
 Profile  
 
 Post subject: Re: how to execute the subqueries with left join using HQL.
PostPosted: Fri Sep 04, 2009 6:21 am 
Beginner
Beginner

Joined: Wed Nov 19, 2008 6:39 am
Posts: 44
Location: Mumbai, India
Please refer this. It would be helpful.

http://docs.jboss.org/hibernate/stable/ ... l-examples

_________________
Thx,
Murugesan.
Web: http://www.murugesanpitchandi.com


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.