Hello,
Just ask a best practice for saving data.
Say that there has 2 tables User_Address, User_Address_History
and the User Address has a mapping hbm.xml file.
When I first time save the data
Hibernate process insert data into User_Address Table,
When I update that record,
Hiberbernate process the update process to update the table data,
and insert a new "same" data into the History table.
Every Update process does cause one insert into History table....
Is there any easy way to do this scenario....
THANK YOU VERY MUCH...
|