Hi. I'm using the NH 1.2.0 Beta.
How can I save a parent/child association using composite-id? I want to do the following:
Parent p = new Parent();
p.Children.Add(new Child());
p.Children.Add(new Child());
Session.Save(p);
When I call Save, I get this message:
Quote:
SQL insert, update or delete failed (expected affected row count: 1, actual affected row count: 0). Possible causes: the row was modified or deleted by another user, or a trigger is reporting misleading row count.
My "parent" table has the following pk: emp_id and parent_id
My "child" table has the following pk: emp_id, parent_id and child_id
Is it possible to use save/update with composite-id in associations?
Ps: just to remember you, I can't use unsaved-value because I'm using composite-id (I think :-) )
Thanks, bye.