Hi, I'm new to NHibernate, and I'm struggling with a problem when I Merge or update a entity when I just update the collection or an item in the collection I get a SQL Exception Cannot perform UPDATE ********** SET WHERE xxxx = XXXX. I realise the propblem is there is not properties on the parent entity that has changed, resulting ina empty SET clause, how do I get around this problem.
In the mappings the collection can be a many-many of a one-many in the parent I set the inverse property to true. If I set the dynamic-update to false this problem goes away, obviosly because the update statement is being forced.
Any help would be greatful.
|