Hello,
I was under the impression that if you have a <version ... > field in your mapping file, then the corresponding @Version annotation would be generated when the ejb3 option is on (hbm2java).  The Version annotation however, is being left out.  Is this a bug?
Hibernate version:  Hibernate Tools 3.1.0beta5 
Mapping documents:
Code:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated Jun 13, 2006 3:27:21 PM by Hibernate Tools 3.1.0.beta5 -->
<hibernate-mapping>
    <class name="Sample" table="Sample">
        <id name="id" type="java.lang.Long">
            <column name="id" />
            <generator class="native" />
        </id>
        <version name="version" column="version"/>
        <property name="value" column="value" type="string"/>
    </class>
</hibernate-mapping>