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>
建议:最好写在第一个地方,这样下面就可以不用写很长的包名了
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>
建议:最好写在第一个地方,这样下面就可以不用写很长的包名了
相关文章推荐
- 关于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 score refers to an unmapped class: Student
- org.hibernate.MappingException: An association from the table tuser refers to an unmapped class: Role
- org.hibernate.MappingException:An association from the table XX refers to an unmapped class
- 关于An association from the table refers to an unmapped class
- 错误 An association from the table STUDENT refers to an unmapped class: com.pb.hibernate.po.Grade
- 关于An association from the table refers to an unmapped class
- An association from the table B_USER refers to an unmapped class: com.shxt.framework.book.bo.Dict
- An association from the table work_output refers to an unmapped class: org.ejs.sys.model.Part
- An association from the table PersonAddress refers to an unmapped class
- org.hibernate.MappingException: An association from the table STREET refers to an unmapped class: e
- An association from the table message refers to an unmapped class: pojo类名
- 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