解决方法:
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>
建议:最好写在第一个地方,这样下面就可以不用写很长的包名了
【转】An association from the table * refers to an unmapped class: *
猜你喜欢
转载自bigdragon.iteye.com/blog/2200172
今日推荐
周排行