Hi,

I have two objects Client & Contact Person. Client object has collection of
contact persons. When Client object is saved in update mode, it throws an
error message ' Unique Key Violation',
Contact Person has a field CPCode which has Unique key constraint in Ms
Sql. When i traced through sql profiler, I came to know that nhibernate
fires Insert Statements first and then delete statements, because of this
sql throws  ' Unique Key Violation' error.

Now my question is how can i change the sequence, i want nhibernate to fire
delete statement first and then insert.

Please help

Regards
Chetan Chaphekar

Reply via email to