I have developed a customer maintenance application. Users can alter the customer details via web interface. I want to handle the following scenario:
User 1loadscustomer1details.User 2loadscustomer1details.User 1changes and savescustomer1'sname.User 2only changes and savescustomer1's age.
In the scenario above, finally database holds customer1's old name and the new age because User 2 overwrites User 1's update. I'm using Hibernate. I had heard that Hibernate Automatic Versioning supports this. If any one know how to handle this please advise me.