title: Hibernate optimistic locking..how it works?
body: <p>I was reading the below blog about hibernate optimistic locking. I am planning to use it with hibernate. But, I have one concern. we have java code and c++ code, both connect to one database. While, java code can use hibernate to achieve optimistic locking, I want to make the c++ code do the same thing. Also, c++ code is using some legacy code.</p>
  
  <p><a href="http://turgaykivrak.wordpress.com/2009/05/16/72/" rel="noreferrer">http://turgaykivrak.wordpress.com/2009/05/16/72/</a></p>
  
  <p>Is there a documentation that explains how hibernate achieves optimistic locking?</p>
  
  <p>Any suggestions are appreciated.</p>
  
  <p>Thank you<br>
  Bala</p>