nested exception is org.hibernate.MappingException: Association references unmapped class:
Posted on 2010-07-21 16:05 记录 阅读(6015) 评论(0) 编辑 收藏 举报错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'companyServiceBean': Injection of resource fields failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [beans.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: com.hqhop.hqhopsvc.tech.bean.diy.ComUse
解决:所有有跟这张表有关联的 .hbm.xml 的CLASS路径是否正确。
如:<hibernate-mapping package="ccom.hqhop.hqhopsvc.tech.bean.diy">