Well that is the problem.
NH does not touch your object; you must assign it explicitly.

On Sat, Apr 24, 2010 at 3:42 PM, Datvi <[email protected]> wrote:

> I noticed that "car and wheels" metaphor is not completly suitable
> with my actual case. Because "car and wheels" looks like a composition
> relation.
>
> > Ok, and how look the creation of a new wheel...
>
> I guess you want to know if it is a composition for my case. No it is
> not. Because for my case, a Car can have 3 wheels and property for the
> fourth wheel can be null. Any wheel can be deleted and assigned.
>
> I think "Car and Passangers" is more suitable metaphor for my
> situation.
>
> > to be short, are you assigning the property Owner some where ?
>
> I expect nhibernate to assign "mywheel.Owner" when i assign
> "mycar.wheel1 = mywheel"
> So that's Ok. for me :  Car Owner {get; private set}
>
> Thanks.
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>


-- 
Fabio Maulo

-- 
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