关于An association from the table refers to an unmapped class
2016-12-11 10:31
363 查看
1,检查你的hibernate.cfg.xml文件中是否添加了 <mapping resource="xxxx.hbm.xml"/>
2,检查你的hibernate.cfg.xml文件中的相关联的两个<mapping resource=""/>的顺序,可能有其中一个需要引用另一个,但是另一个却还没有编译,就是说被用作外键的表要放在前面
3,检查你的*.hbm.xml文件名是否正确
4, 检查你的*.hbm.xml里面类全名
5,<key-property name="id" />
<key-property name="name" /> 使用联合主键时,两个是否写对
2,检查你的hibernate.cfg.xml文件中的相关联的两个<mapping resource=""/>的顺序,可能有其中一个需要引用另一个,但是另一个却还没有编译,就是说被用作外键的表要放在前面
3,检查你的*.hbm.xml文件名是否正确
4, 检查你的*.hbm.xml里面类全名
5,<key-property name="id" />
<key-property name="name" /> 使用联合主键时,两个是否写对
相关文章推荐
- 关于An association from the table refers to an unmapped class
- Hibernate:关于An association from the table refers to an unmapped class
- 关于An association from the table refers to an unmapped class
- 关于An association from the table refers to an unmapped class
- 关于An association from the table refers to an unmapped class
- An association from the table message refers to an unmapped class: pojo类名
- An association from the table User refers to an unmapped class
- org.hibernate.MappingException: An association from the table tuser refers to an unmapped class: Role
- An association from the table emps refers to an unmapped class: Dept 错误解析
- An association from the table * refers to an unmapped class: *
- An association from the table suppliersuserinfo refers to an unmapped class
- An association from the table PersonAddress refers to an unmapped class
- org.hibernate.MappingException:An association from the table XX refers to an unmapped class
- An association from the table yi_community refers to an unmapped class: com。yiyi.domain.YiGroup
- org.hibernate.MappingException: An association from the table STREET refers to an unmapped class: e
- An association from the table * refers to an unmapped class: *
- 错误 An association from the table STUDENT refers to an unmapped class: com.pb.hibernate.po.Grade
- An association from the table score refers to an unmapped class: Student
- An association from the table student refers to an unmapped class: com.test.model.Team
- 2.An association from the table refers to an unmapped class:错误