-->
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: One-to-Many Inheritance nhibernate Mapping
PostPosted: Tue Jul 29, 2008 5:25 pm 
Newbie

Joined: Tue Jul 29, 2008 5:19 pm
Posts: 3
I appreciate your help in this matter, as I am not able to find a solution for this using nhibernate; I am new to it anyway.

We do have an inheritance mapping problem where we have a Contact table, and an Customer table; where the Customer extends the Contact object; however, for the same Contact there can be multiple Customers (we do have some business case for this!). The Customer table has primary key column, and another column as foreign key column that references the Contact table.



The problem is that inheritance mapping using the joined-class looks to support one-to-one association/mapping between the base class and the derived class using the key element. Is there way to handle this case, any suggestion?

Again, appreciating your support and help

Thank you and Regards,

Ali


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.