I have developed a customer maintenance application. Users can alter the customer details via web interface. I want to handle the following scenario:
User 1
loadscustomer1
details.User 2
loadscustomer1
details.User 1
changes and savescustomer1
'sname
.User 2
only 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.