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

时间:2014-04-02 08:01:10   收藏:0   阅读:734

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

         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

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!