-->
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.  [ 2 posts ] 
Author Message
 Post subject: Generation of mapping for one-to-one table relationships
PostPosted: Thu Aug 16, 2007 10:00 pm 
Newbie

Joined: Thu Aug 16, 2007 9:47 pm
Posts: 2
I have two tables in sql server 2005 that are intended to have a one-to-one relationship.

I have tried configure this relationship in the following ways:
1.) Both tables having identical PK values and a link between PK's
2.) PK on one table, linked to FK with Unique constraint on second table.

Neither of these configurations produce Nhibernate mappings that specify "one-to-one" relationships.

Does anyone know how I configure my tables to produce the "one-to-one" generated mapping I am seeking?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 16, 2007 10:23 pm 
Newbie

Joined: Thu Aug 16, 2007 9:47 pm
Posts: 2
Perhaps a better question would be, does anyone know of an NHibernate map generation template that supports "one-to-one" relationships?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.