-->
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: New feature in NHibernate 2.0.0 Alpha : <Join></Joi
PostPosted: Tue Apr 01, 2008 7:07 am 
Beginner
Beginner

Joined: Tue Sep 11, 2007 5:57 am
Posts: 36
I am looking for new feature "Multitable entities in NHibernate" added in 2.0.0. I gone through the link 'http://www.ayende.com/Blog/archive/2007/04/24/Multi-Table-Entities-in-NHibernate.aspx' and was able to get expected result for the entities having relationship as ONE-To-ONE.
But if I try same feture for the entities having ONE-TO-MANY relationship. like if Person has one column name Address1Uid that refers to AddressUid which is primary key of Address table,same doesn't work.

As the query executed is
SELECT ......... FROM Person Per
INNER JOIN Address Add on Add.AddressUid=Per.PersonUid

and this will always return null, as PersonUid is not primary key of address.

My question here is that, is this feature only for one-to-one relationship?
If yes then
please to go
http://www.hibernate.org/hib_docs/v3/re ... ation-join
Topic 5.1.18. join

what sense does attribute 'fetch' make.

Please correct me if I have missed out on something.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.