Hi,
I have following scenario: The table relationship is like Employee table has relationship with department table as below. EMP : empid Dept: deptid, empid one emp may be related with the one to many depts. I need to insert thr data into emp table first & using id generated need to insert the many records into dept table.
I tried using cascade functionality of Hibernate, but it is not working. How this can be acheived by using Hibernate? Is it possible that I will save only EMP object(by populating emp & dept data) & it will populate data into EMP & Dept table by using cascade?
Thanks, Sudhir
|