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

≯℡__Kan透↙ 提交于 2019-12-01 22:25:34

The reason is , hibernate tries to convert the types but one of them was in compatible

my code was string like this

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

and it should by with small letter s

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

seems its case sensitive and in hbm it should be string and in java class String

Property documentation for type

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!