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

An association from the table * refers to an unmapped class: *

2014-04-18 09:14 501 查看

An association from the table * refers to an unmapped class: *



解决方法:

class路径没写正确。

有三个地方需要注意

1、<hibernate-mapping package="">

2、<class name="com.model.RoleInfo">

3、<set name="userInfos" table="ROLEOFUSER" inverse="false">

<key column="ROLEID">

</key>

<many-to-many column="USERID" class="com.model.UserInfo" />

</set>





建议:最好写在第一个地方,这样下面就可以不用写很长的包名了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐