2.An association from the table refers to an unmapped class:错误
来源:互联网 发布:java 强引用 弱引用 编辑:程序博客网 时间:2024/05/17 22:35
出现这个错误从下面4个方面入手检查:
1、检查你的hibernate.cfg.xml文件中是否添加了 <mapping resource="xxxx.hbm.xml"/>
2、检查你的hibernate.cfg.xml文件中的相关联的两个<mapping resource=""/>的顺序,可能有其中一个需要引用另一个,但是另一个却还没有编译,就是说被用作外键的表要放在前面
3、检查你的*.hbm.xml文件名是否正确
4、检查你的*.hbm.xml里面类全名是不是补齐全了
我出的错误是<many-to-one name="person"class="org.app.domain.Person"
column="person_id" not-null="true"/> 在class属性中的domain写成了domian。。一定要注意。
- 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
- 2.An association from the table refers to an unmapped class:错误
- hibernate错误:An association from the table ....... refers to an unmapped class
- SSH错误:An association from the table orderitem refers to an unmapped class
- 【hibernate错误】An association from the table refers to an unmapped class
- An association from the table emps refers to an unmapped class: Dept 错误解析
- org.hibernate.MappingException: An association from the table tuser refers to an unmapped class: Role
- 映射异常: An association from the table tb_baoxiao refers to an unmapped class: int
- An association from the table work_output refers to an unmapped class: org.ejs.sys.model.Part
- 关于An association from the table refers to an unmapped class
- An association from the table PersonAddress refers to an unmapped class
- 映射异常: An association from the table TBL_TRAIN_COURSE_MONTH_PLAN refers to an unmapped class
- An association from the table suppliersuserinfo refers to an unmapped class
- An association from the table student refers to an unmapped class: com.test.model.Team
- An association from the table User refers to an unmapped class
- Make C Library
- MyEclipse/eclipse的php开发调试环境配置
- Android开发之四(一):常用控件之文本框TextView
- Java抽象类和接口的区别
- ubuntu 中支持GBK编码
- 2.An association from the table refers to an unmapped class:错误
- unbuntu/qcd:bash: /usr/local/sbin/qcd: 权限不够
- Many to Many relation with Entity Framework
- awk教程
- 利用NMAKE工具编程C++
- 关于LNK2001错误的一些总结
- Oracle11g R2相比R1的区别
- 如何建立DHCP服务器
- sql 2005 “代理XP”组件已作为此服务器安全配置的一部分被关闭