-->
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.  [ 3 posts ] 
Author Message
 Post subject: Using outer join for the <join> element
PostPosted: Mon Feb 14, 2005 5:50 pm 
Newbie

Joined: Fri Jan 28, 2005 8:58 am
Posts: 9
Hi,

I would like to know if it is possible to use Outer Join in the new <join> element in Hibernate3 when joining multiple tables to the same class.

I have a case where I map 2 tables named A and B. A is the main table and table B is a supplement table which can have extra information. I am joining table A with table B using <join table="B">.

Hibernate creates a sql with inner join as (A inner join B), but I need (A left outer join B), as I still want rows in A that do not have matching rows in B.

Please let me know if this is possible.

Thanks
Sathya.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 14, 2005 8:35 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
optional="true"


Top
 Profile  
 
 Post subject: Works!
PostPosted: Tue Feb 15, 2005 11:35 am 
Newbie

Joined: Fri Jan 28, 2005 8:58 am
Posts: 9
gavin wrote:
optional="true"


Thanks, Gavin. It works perfectly.

For some reason, the XMLBuddy plug-in in Eclipse was not showing the "optional" parameter in the context-sensitive help.

After your mail, I looked at the DTD, and sure enough, it was there.

Sathya.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.