码迷,mamicode.com
首页 > Web开发 > 详细

hibernate 错误 could not determine type for

时间:2017-01-11 07:45:08      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:否则   cep   eterm   app   one   getx   for   idcard   实体   

今天配置实体类注解时,出现以下错误:

org.hibernate.MappingException: Could not determine type for: com.oneToOne.IdCard, at table: T_Students, for columns: 
解决方案:注解要么写在字段上,要么写在getXX上,千万千万不能混合使用,否则会报这个错误!

hibernate 错误 could not determine type for

标签:否则   cep   eterm   app   one   getx   for   idcard   实体   

原文地址:http://www.cnblogs.com/xiao-lei/p/6271587.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!