Use of @OneToMany or @ManyToMany targeting an unmapped class: com.jason.model.MRequirement.mexecutor
2013-04-30 15:33
363 查看
hibernate 出现这个错:
Use of @OneToMany or @ManyToMany targeting an unmapped class: com.jason.model.MRequirement.mexecutors[com.jason.model.MExecutor]
解决方案:
查看Entity的引用是来自于哪个包,我的引用org.hibernate...就出现这个错,换成javax.persistence.Entity就没有这个错了
Use of @OneToMany or @ManyToMany targeting an unmapped class: com.jason.model.MRequirement.mexecutors[com.jason.model.MExecutor]
解决方案:
查看Entity的引用是来自于哪个包,我的引用org.hibernate...就出现这个错,换成javax.persistence.Entity就没有这个错了
相关文章推荐
- Use of @OneToMany or @ManyToMany targeting an unmapped class: com.lin.bean.product.ProductInfo.style
- 关于Use of @OneToMany or @ManyToMany targeting an unmapped class: com.xxx.domain异常
- Use of @OneToMany or @ManyToMany targeting an unmapped class
- Use of @OneToMany or @ManyToMany targeting an unmapped class
- Use of @OneToMany or @ManyToMany targeting an unmapped class:hibernate映射错误
- org.hibernate.AnnotationException: Collection has neither generic type or OneToMany.targetEntity() defined: com.bjsxt.model.Student.courses
- An association from the table student refers to an unmapped class: com.test.model.Team
- identifier of an instance of com.you.hibernate.model.TStudentInfo was altered from 6 to 7
- How one VBA project can use an object declared in the class module of another project
- ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.al
- 错误 An association from the table STUDENT refers to an unmapped class: com.pb.hibernate.po.Grade
- identifier of an instance of com.jh.oa.bpm.model.JhBpmFormdata was altered from 266 to 267
- Creating An Instance Of The Com Component With Clsid {b9425246-4131-11d2-be48-004005a04edf} From The Iclassfactory Failed Due To The Following Error
- All-In-One Code Framework(AIO): 如何使用C#编写进程外的COM组件 (How to write an out-of-proc COM server in C#)
- An association from the table B_USER refers to an unmapped class: com.shxt.framework.book.bo.Dict
- Question 33: How can a C++ developer use the placement new syntax to make new allocate an object of class SomeClass at a particu
- org.hibernate.PropertyNotFoundException: Could not find a getter for employee in class com.itcast.f_hbm_oneToMany.Department
- Hibernate 异常:“@OneToOne or @ManyToOne on XXX references an unknown entity: XXX”
- org.hibernate.AnnotationException: @OneToOne or @ManyToOne on com.demo.pojo.IdCard
- An association from the table yi_community refers to an unmapped class: com。yiyi.domain.YiGroup