-->
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 mapping using two link tables
PostPosted: Mon Sep 10, 2007 7:32 am 
Beginner
Beginner

Joined: Fri May 25, 2007 5:55 am
Posts: 26
Hibernate version:

Actually using NHibernate 1.2.0 GA but asking the question here as it pertains to the mapping file as opposed to the underlying language.

I have a table of Portfolios. A Portfolio can contain many trades. However for various reasons I have to do this through two link tables.

Portfolio 1.... * PortfoliosTrades 1....1 TradeExternalMap 1...1 Trades

I just want to go straight from Portfolion to Trades using the two Link tables PortfoliosTrades and TradeExternalMap.

We have a just reason for the database design which I wont go into now.

Can this be done. If so how. Any help much appreciated.

thanks,
Richie.


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.