Hi, you should use another generator for the SettingMap Id (foreign), take a
look at this article:
http://sdesmedt.wordpress.com/2006/07/24/nhibernate-part-3-mapping-techniques-for-aggregation-one-to-one-mapping/

<http://sdesmedt.wordpress.com/2006/07/24/nhibernate-part-3-mapping-techniques-for-aggregation-one-to-one-mapping/>
Regards,
Daniel Mirapalheta


2011/1/23 chobo5 <[email protected]>

> I would expect my database to look like this
>
> http://gyazo.com/259bd4030a6c41e0ee0d19d95f0a8480.png
>
> If I load up tables in Ms Sql Server 2005/2008 database diagrams
> viewer and I don't see what I see in the above screen shot, I am not
> going to think there is a one to one relationship on those tables.  As
> no relationship is drawn to it.
>
>
> On Jan 22, 12:25 am, James Gregory <[email protected]> wrote:
> > How would you expect the schema to look?
> >
> > A one-to-one relationship is an implicit relationship between two tables,
> > where there's considered to be an association when the two primary key
> > values match. There's no referential integrity when using this
> relationship.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Fluent NHibernate" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<fluent-nhibernate%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/fluent-nhibernate?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.

Reply via email to