在我的Mysql数据库里,定义了一个字段,其类型是Decimal(6.3), 那我使用hibernate进行ORM的时候,在hbm.xml文件中,要如何设置呢?
<property name="something“ type="big_decimal" precision="6" scale="3" column="someColumn"/>
但是提示错误,错误信息如下:
Wrong column type: someColumn, expected: numeric(6,3)
我是用的mysql是5.6, Hibernate是4.2.8-Final
如何跟1-9中一样创造hibernate xml mapping file
Hibernate生成XML Mapping file失败
eclipse2014找不到hibernate xml mapping
hibernate-release-4.2.3.Final\project\hibernate-core\src\main\resources\org\hibernate\hibernate-mapping-3.0.dtd在哪里
相关分类