Joined: Tue Oct 04, 2005 3:27 pm Posts: 3
|
Hi
I have to following problem and as I'm new to NHibernate I'm interested for the right approach.
I have an entity that has one-to-many ralation defined as Bag. In my winforms app i load the entity when I create the form and close the session. Then I do modifications to the collection of the entity and need to store it back in the database. Here is my problem. The Parent is already saved but when I closed the session it becomes transient. The child has a reference - not-null to the parent, invers is set to true. I do saveorupdate on the parent object and i get - "not-null property references a null or transient value:" which states that the problem is the reference to the parent in the child object.
I'll be very glad if you can help me because I'm really pressed with the time so no time to searchfor a good solution.
|
|