Hibernate version:2.1.8
Name and version of the database you are using:oracle9i
Hi There i have a generel question regarding Adding a Child In Parent/Child Relationship..
I have a parent with Parent which contains 2 children ..I want to add 3rd child...Iam following this procedure..but iam unable to add the 3rd child..Iam not understanding where exactly iam doing the mistake..
1.Loaded the Parent with the key
2.got the ChildSet from the Parent
3.created the object with 3rd child's details
4.added the created object(Step 3) to the Set i got from step 2
5.added the modified set(from step 4) to the Parent that from step 1
6.used to following code
Code:
session.saveOrUpdate(cswCaseParent);
session.flush();
tx.commit();
Still iam unable to see the 3rd child in the data base..Am i not following correct procedure??Please help me...
Thanks In Advance
JD