title: Hibernate Automatic Versioning
body: <p>I have developed a customer maintenance application. Users can alter the customer details via web interface. I want to handle the following scenario:</p>
  
  <ol>
  <li><code>User 1</code> loads <code>customer1</code> details.</li>
  <li><code>User 2</code> loads <code>customer1</code> details.</li>
  <li><code>User 1</code> changes and saves <code>customer1</code>'s <code>name</code>.</li>
  <li><code>User 2</code> only changes and saves <code>customer1</code>'s age.</li>
  </ol>
  
  <p>In the scenario above, finally database holds <code>customer1</code>'s old name and the new age because <code>User 2</code> overwrites <code>User 1</code>'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.</p>