Generate Hibernate version tag for optimistic concurrency control

When I search google for the text in the subject title I can find lots of web pages that contain details for DBVA, but so far I have been unable to find any details on how to do this.

If there an example/manual that covers the defining of columns so that the generated hibernate code will use optimistic locking via the columns.

Thanks

Roger