您的位置:首页 > 移动开发

Exception in thread "main" org.hibernate.MappingException

2014-06-06 23:43 483 查看
Exception in thread "main" org.hibernate.MappingException: Could not determine type for: String, at table: table1, for columns: [org.hibernate.mapping.Column(name)]
问题原因:User.hbm.xml文件中的type指的是Hibernate中的string类型,而不是java中的String类型

解决办法:将xxx.hbm.xml文件中所有的type的String类型全部改为string。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐