-->
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: Mapping Composite Foreign Keys using Nhibernate
PostPosted: Wed Dec 28, 2005 10:12 am 
Beginner
Beginner

Joined: Mon Oct 17, 2005 1:58 am
Posts: 27
We have two table named users and questions. And another table as link table to maintain many to many relationship between the said tables.

And we have one more table named Answers that has two foreign keys one each from users and questions table.

Here, i need to get the answer for a particular question by accessing
user.questions[n].answer.

can anybody suggest how i can do this? Do i need to make any changes in mapping files.

Kindly help.

thanks.


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.