Monthly Archives: February 2014

java.lang.ClassCastException: org.hibernate.type.StringType cannot be cast to org.hibernate.type.VersionType


Hibernate Tool While reverse engineering

Reason for this problem: In one of my table there was a field named version. Which Hibernate tool treated as field version and try to cast the same and it throws an exception because the type of the field was not what hibernate tool was expecting.


Open the hbm configuration file for corresponding table and change the configuration of that field from <version> to <property> .

86 total views, no views today