Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 2.1.8
Hibernate-extensions: 2.1.3
Mapping documents:
<version name="version" column="VERSION" type="java.lang.Long"
unsaved-value="null">
</version>
Hi,
why the generated hbm2java constructors include the version attribute?
version is a attribute which is set only by hibernate internally like the
id, or? and the id isnĀ“t include in the constructors. furthermore the version attribute is no business value and shoud
therefore not be in the business classes constructor. is there any possibility
to leave the version attribute out of the generated constructors? or
are there reasons why hbm2java takes them to the constructor?
thanks,
thommy