Hi Oskar, thanks for  your response.  I'm not sure what technical
details you are looking for, but I will try and restate my question
more clearly.

I have a User table with a foreign key to a UserType table.  I would
like to have a single entity, User which has the properties from both
tables.  To do this, I am using the <join> element.  I realize I would
map this a relationship, but that is not what I want.

Two questions, first: is this supported?  I was able to load a user
with the join mapping, but have not been able to save one.  Second: if
it is supported, is it a good idea?


On Jan 18, 7:47 am, Oskar Berggren <[email protected]> wrote:
> 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-nhibern...
>
> > --
> > 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 
> > athttp://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