Could not determine type for: com.zyc.oa.model.Organization, at table

来源:互联网 发布:stc单片机公司 编辑:程序博客网 时间:2024/04/27 16:36

错误代码:

  Could not determine type for: com.zyc.oa.model.Organization, at table: t_organization, for

columns: [org.hibernate.mapping.Column(parent)]


原因:不能确定实体类Organization某个字段的类型,即使用Annatation事,要么都写在成员属性上,要么都写在get()方法上,不能混用


解决:使用的注释要保持一致。