-->
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: Left Outer Join in HQL without mapping
PostPosted: Fri Jun 04, 2010 9:06 am 
Newbie

Joined: Fri Jun 04, 2010 8:27 am
Posts: 2
Hi,

I have a issue with left outer join without a direct mapping between two tables.
For example if i hv
Table A
Id Code
1 AAA
2 BBB
3 CCC
Table B
Id Label
1 XYZ
3 QWE
4 RTY
And there is no relation between two tables.

The following HQL is inner join by default because of "from A a, B b" as per my understanding.
select a, b from A a, B b where b.id=a.id....

But i want left outer join results i.e the HQL should return all the 3 rows with id's 1,2,3.

Please let me know what is the way out for this.

Thanks,
Sharada.


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.