An association from the table * refers to an unmapped class: *
2011-03-25 15:42
330 查看
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>
建议:最好写在第一个地方,这样下面就可以不用写很长的包名了
解决方法:
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
- An association from the table yi_community refers to an unmapped class: com。yiyi.domain.YiGroup
- An association from the table PersonAddress 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 suppliersuserinfo refers to an unmapped class
- SSH错误:An association from the table orderitem refers to an unmapped class
- An association from the table notecategory refers to an unmapped class
- An association from the table emps refers to an unmapped class: Dept 错误解析
- org.hibernate.MappingException: An association from the table commodity refers to an unmapped class
- 关于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 refers to an unmapped class
- 关于An association from the table refers to an unmapped class
- 出现此错误An association from the table refers to an unmapped class
- Hibernate:关于An association from the table refers to an unmapped class
- 2.An association from the table refers to an unmapped class:错误
- An association from the table User 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
- An association from the table score refers to an unmapped class: Student