Saturday, June 12, 2010

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

Problème


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

Solution
        <version name="version" type="string">
           
        version>


I rename version in property and i also rename the field of my table.

In file.hbm.xml :

        <property name="arteVersion" type="string">
           
        property>

In Mysql :  alter table t_dependency CHANGE version dep_version VARCHAR(150);

1 comment: