An association from the table B_USER refers to an unmapped class: com.shxt.framework.book.bo.Dict
2012-11-28 09:24
661 查看
Exception in thread "main" org.hibernate.MappingException: An association from the table B_USER refers to an unmapped class: com.shxt.framework.book.bo.Dict
错误:
<many-to-one name="dict" class="com.shxt.framework.book.bo.Dict" fetch="select">
<column name="U_ROLE" precision="22" scale="0" />
</many-to-one>目所示错误
正确:
<many-to-one name="dict" class="com.shxt.framework.dict.bo.Dict" fetch="select">
<column name="U_ROLE" precision="22" scale="0" />
</many-to-one>目所示错误
原因:class 路径配置错误
错误:
<many-to-one name="dict" class="com.shxt.framework.book.bo.Dict" fetch="select">
<column name="U_ROLE" precision="22" scale="0" />
</many-to-one>目所示错误
正确:
<many-to-one name="dict" class="com.shxt.framework.dict.bo.Dict" fetch="select">
<column name="U_ROLE" precision="22" scale="0" />
</many-to-one>目所示错误
原因:class 路径配置错误
相关文章推荐
- An association from the table User 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 STUDENT refers to an unmapped class: com.pb.hibernate.po.Grade
- An association from the table suppliersuserinfo 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 tuser refers to an unmapped class: Role
- 出现此错误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
- org.hibernate.MappingException: An association from the table commodity refers to an unmapped class
- An association from the table * refers to an unmapped class: *
- org.hibernate.MappingException: An association from the table tuser refers to an unmapped c
- An association from the table refers to an unmapped class
- An association from the table PersonAddress refers to an unmapped class
- Hibernate:关于An association from the table 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 XX refers to an unmapped class
- SSH错误:An association from the table orderitem 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