Hi
I have a simple parent child relationship as follows
Public Class Order
Public Property ID As Integer?
Public Property State As State
End Class
Public Class State
Public Property ID As Integer
End Class
Usage (Simplified):
Dim order = OrderFactory.Create()
Dim state = StateFactory.Create(StateEnum.Received) ' Enum value is the
assigned ID of the State
order.State = state
session.Save(order)
What I would like is for NHibernate to save the Order with the FK to the
state but without inserting the state record (as it already exists). I've
tried setting the state to be mutable="false" but that appears to have no
effect. Is there a way to tell NHibernate that this object does not need to
be persisted?
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].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.