in the hibernate reference document , I found something about version columen , but how to use it , and which module is the implementation of it.
------------------------------------------------------------------------------------
4.1.7. version (optional)
The <version> element is optional and indicates that the table contains versioned data. This is particularly useful
if you plan to use long transactions (see below).
Code:
<version
column="version_column"
name="propertyName"
type="typename"
/version>
column (optional - defaults to the property name): The name of the column holding the version number.
name: The name of a property of the persistent class.
type (optional - defaults to integer): The type of the version number.
Version numbers may be of type long, integer, short, timestamp or calendar.