首页 > 编程语言 > 详细

实体类注解错误:Could not determine type for: java.util.Set

时间:2014-04-02 08:01:10      阅读:732      评论:0      收藏:0      [点我收藏+]

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

         Caused by: org.hibernate.MappingException: Could not determine type for: java.util.Set, at table: ss_user, for columns: [org.hibernate.mapping.Column(role_Set)]


解决方案:注解要么一律写在字段上,要么全部写在getXX上,切忌不能混合使用,否则会报错!


实体类注解错误:Could not determine type for: java.util.Set,布布扣,bubuko.com

实体类注解错误:Could not determine type for: java.util.Set

原文:http://yantaiguanyue.blog.51cto.com/3777109/1388533

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!