posted 11 years ago
Hi, with spring mvc 3.0.5 and hibernate 3, I have created a dao/service web service layer for interacting with mysql 5.
When user click the submit button, my application require to delete all related records from a table then add another set data to the table.
I wonder how to achieve that.
The remove() method is written as below:
I am also thinking use begingTransaction and endTransaction around the removeall() and create() function, but I don't know how and not even sure whether that can solve my problem.
Any suggestion would be very appreciated.
Thanks
Sam