今天配置实体类注解时,出现以下错误:
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上,切忌不能混合使用,否则会报错!
今天配置实体类注解时,出现以下错误:
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上,切忌不能混合使用,否则会报错!
上一篇:异常:Associations marked as mappedBy must not define database mappings like @JoinColumn
下一篇:我的友情链接
使用jsonNode去判断实体类的参数是否为空
Nhibernet报错
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M