org.hibernate.AnnotationException: mappedBy reference an unknown target entity property

时间:2022-06-14 23:06:48

org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: xxxxxxx

原因是创建CompanyAcademyArticleItem时,OneToMany注解中mappedBy写错了,应该写@OneToMany(mappedBy="companyAcademyArticleItem")