Joined: Mon Jul 11, 2011 5:36 am Posts: 2
|
Hi, I have one employee table contains empname.deptname and emp address. of which empname and deptname is my composite primary key.In the view I am displaying the data of emps of perticular department. Now I add some emps and may remove from the view and on click of save button changes should reflect to database. I am doing this using hibernate. I used saveOrUpdate method but it is only updating previous data or adding new data. I want to remove emps which were removed from the view. What should I do for this. Shall I remove all employees of dept from table when displayed on view and save all from view to table. Is there any better way to do that? Please guide...
|
|