-->
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: "Nested" Composite-Ids
PostPosted: Thu Jan 14, 2010 7:38 am 
Newbie

Joined: Thu Jan 14, 2010 7:30 am
Posts: 2
Hi everyone,

i'm mapping an existing database with fluent Nhibernate and i've this issue:

Tables envolved:

TableA , PK: A
TableB , PK: B
TableC, PK: C
TableD, PK: AB

ok , till here it's all fine. the table that i have problems mappin is:

TableD, PK: ABC

sure i can definetely map it with a composite key made by 3 (pk of a, pk of b, pk of c), but in order to respect the true database schema i would like
to map it defining a composite-key made by 2 , the PK of TableC and the PK of tableD.

theres any way to do that ?

Hope i was clear explaining the prob.

Thanks in advance,

Regards

Alessandro Di Lello


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.