posted 11 years ago
Its an optimistic locking strategy provided by Hibernate. If you give your mapping a <version /> element, when you try to update an object Hibernate will check whether the value of the version contained in the object matches that held in the database. If they don't match Hibernate throws a StaleObjectException. If they do Hibernate updates the object incrementing the version.