您的位置:首页 > 移动开发

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 路径配置错误
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐