Joined: Thu Dec 08, 2011 11:31 pm Posts: 3
|
Hi all,
I have a table CN with primary key CN_NO. CN has one to many relationships with table CN_CLOS (which primary key is combination of CN_NO and CLOS_NO).
Program flow is like this:
Create CN_CLOS Set CN.SETCNCLOS(CNCLOS); -- set CN_CLOS to CN without persisting CN_CLOS first Persist CN (cascade type is Persist and Remove) Flush
In many incidents i could see in the logs DuplicateKeyException on persisiting and the table involved is CN_CLOS. Please advice. Thank you very much.
|
|