报错:DoubleType cannot be cast to org .hibernate.type

DoubleType  cannot  be cast to org .hibernate.type

 报错:DoubleType cannot be cast to org .hibernate.type

 把@version删去或是

或者是(hbm)

<version name="version" type="java.lang.String"> 
            <column name="version" length="50" /> 
</version> 原因

 解决方法:报错:DoubleType cannot be cast to org .hibernate.type