An association from the table refers to an unmapped class
2013-08-18 13:03
423 查看
出现这样的问题就是找不到映射文件
我解决的问题是 路径问题 写的有问题 改了之后就好了
<many-to-one name="dept" class="com.my.panpan.Dept" column="t_dept_id"></many-to-one>
把 之前的 class="dept" 改成现在的 class="com.my.panpan.Dept" 就OK了
最主要的是看你的和这个地方是怎么写的 我的如下
<hibernate-mapping>
<class name="com.my.panpan.Emp" table="t_emp">
我解决的问题是 路径问题 写的有问题 改了之后就好了
<many-to-one name="dept" class="com.my.panpan.Dept" column="t_dept_id"></many-to-one>
把 之前的 class="dept" 改成现在的 class="com.my.panpan.Dept" 就OK了
最主要的是看你的和这个地方是怎么写的 我的如下
<hibernate-mapping>
<class name="com.my.panpan.Emp" table="t_emp">
相关文章推荐
- 2.An association from the table refers to an unmapped class:错误
- hibernate错误:An association from the table ....... refers to an unmapped class
- org.hibernate.MappingException:An association from the table XX refers to an unmapped class
- 关于An association from the table refers to an unmapped class
- An association from the table score refers to an unmapped class: Student
- org.hibernate.MappingException: An association from the table tuser refers to an unmapped class: Role
- 关于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 STUDENT refers to an unmapped class: com.pb.hibernate.po.Grade
- An association from the table B_USER refers to an unmapped class: com.shxt.framework.book.bo.Dict
- An association from the table PersonAddress refers to an unmapped class
- An association from the table work_output refers to an unmapped class: org.ejs.sys.model.Part
- org.hibernate.MappingException: An association from the table STREET refers to an unmapped class: e
- An association from the table message refers to an unmapped class: pojo类名
- An association from the table yi_community refers to an unmapped class: com。yiyi.domain.YiGroup
- SSH错误:An association from the table orderitem 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 PersonAddress refers to an unmapped class
- An association from the table suppliersuserinfo refers to an unmapped class
- An association from the table notecategory refers to an unmapped class