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: Collection based on 1 column of a composite id
PostPosted: Fri Feb 15, 2008 8:13 am 
Newbie

Joined: Fri Feb 15, 2008 8:05 am
Posts: 1
<class name="AggDeal, Model" table="agg_deal">
<composite-id>
<key-property name="DealId" column="deal_id" type="Int32" />
<key-property name="PVDate" column="pv_date" type="DateTime" />
<key-property name="Ccy" column="ccy" type="string" />
<key-many-to-one name="Client" column="pty_no" class="BClient,Model"/>
</composite-id>
......


Is it possible to have a collection based on only the deal_id column of the above composite id.

Based on my attempts so far nhibernate appears to always require that the foreign key table has a foriegn key composed of the full set of columns in the referenced primary key.

or am i missing something?

Thanks,
Damon


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.