failed.org.hibernate.MappingException:无法确定类型:字符串,列:[org.hibernate.mapping.Column(db col name)

2023-12-13

我正在使用 Net Beans IDE ,当我开始部署 Web 项目时,它在控制台输出中显示错误:

failed.org.hibernate.MappingException: Could not determine type for: String, for columns: [org.hibernate.mapping.Column(db col name)

它不能从消息中转换类型;我尝试检查文件 .hbm 和 .java 中的类型,但到目前为止还没有成功。

引发此错误的属性定义为

<property name="exemptionOwnerName1" type="String">

原因是,hibernate尝试转换类型,但其中之一是兼容的

我的代码是这样的字符串

<property name="exemptionOwnerName1" type="String">

应该是小写字母s

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

似乎区分大小写并且在hbm它应该是string and in java class String

类型的属性文档

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

failed.org.hibernate.MappingException:无法确定类型:字符串,列:[org.hibernate.mapping.Column(db col name) 的相关文章

随机推荐