Hi all,
I have a problem with my one-to-many collection mappings collection. I have a unidirectional one-to-many mapping. When I try to update parent, after adding one child to the parent, the actions given below are taken.
On one-to-many unidirectional mapping what actions are taken for INSERT and UPDATE? why does it do a update CHILd after INSERT child? And I dont understand why it tries to set PARENT_ID to null. If someone can help, it will be appreciated.
Kind Regards,
UPDATE PARENT: Hibernate: select CHILD_SEQ.nextval from dual Hibernate: insert into CHILD values (?) Hibernate: update PARENT where PARENT_ID=? Hibernate: update CHILD set PARENT_ID = null where PARENT_ID=?
|