You very likely have a VARCHAR column named VERSION somewhere, and the Hibernate reverse engineering tool generates it as:
<version name="version" type="string"> <column name="VERSION" length="20" /> </version>
instead:
<property name="version" type="string"> <column name="VERSION" length="20" /> </property>
The first is wrong. Firstly, I think this is not what you want. Secondly, the string is not allowed for the version field, as described in chapter 5.1.9. Version (optional) :
Version numbers can be of type Hibernate long , integer , short , timestamp or calendar .
This problem was somehow reported in HHH-3002 (in fact, it should be assigned to Hibernate Tools, not Hibernate Core), and I see two ways to solve it. Or
- fix display manually
- rename the column to another.
source share