Hi
I have a fairly complex business class, consisting of properties and collection (bags) nestet i a couple of levels. I've chosed use many ISessions according to chapter 10.4.2 in the manual.
Using one Session I fetches a instance of my business class from the database.
The application modifies this instance by changing property valus and adding/deleting items from the collection. Next step for the application is to save the changes to the database.
The application creates a new session and performs:session.SaveOrUpdate(item)
(there is a bit session and transaction manipulation first)
This immediatly generates a exception with the following message..
Quote:
Message = "deleted object would be re-saved by cascade (remove deleted object from associations): 51, of class: xxxxxx"
The referenced class xxxxx in of one of the collections.
Can anyone explain whats gone wrong, and what to do.
//lg