You are either confused, or express yourself confusingly. :)   You
don't provide technical details, but it sounds like you are using
<join> when in fact what you have is a one-to-many relationship. Map
this with <many-to-one> in the mapping for User.

The <join> element is when two or more tables should be used for the
_same_ object.

/Oskar


2010/1/18 Robin Clowers <[email protected]>:
> Hi I originally posted this to stack overflow, but I didn't get an
> answer quickly so I thought someone here might be able to help.
>
> I have a User table which has a foreign key to the UserType table. I
> created a User object with a Type property that is mapped as a join to
> the UserType table. Is there a way to insert a new User without
> inserting a new UserType?
>
> http://stackoverflow.com/questions/2083415/how-do-you-save-an-nhibernate-entity-with-a-joined-field
>
> --
> You received this message because you are subscribed to the Google Groups 
> "nhusers" 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/nhusers?hl=en.
>
>
>
>
-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en.


Reply via email to