Hibernate Annotation的一个错误
来源:互联网 发布:淘宝上,货返是什么意思 编辑:程序博客网 时间:2024/05/01 02:34
2013-02-26 23:09:02.285::WARN: Failed startup ofcontextorg.mortbay.jetty.webapp.WebAppContext@1f9b804{/smartmeeting,D:\workspace\smartmeeting\src\main\webapp}
org.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'documentContr': Injection of autowireddependencies failed; nested exception isorg.springframework.beans.factory.BeanCreationException: Could notautowire field: privatecom.wushi.smartmeeting.service.DocumentServiceImplcom.wushi.smartmeeting.controller.DocumentContr.documentService;nested exception isorg.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'docService': Injection of autowireddependencies failed; nested exception isorg.springframework.beans.factory.BeanCreationException: Could notautowire field: private com.wushi.smartmeeting.dao.DocumentDAOcom.wushi.smartmeeting.service.DocumentServiceImpl.docDao; nestedexception isorg.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'documentDAO': Injection of autowireddependencies failed; nested exception isorg.springframework.beans.factory.BeanCreationException: Could notautowire field: private org.hibernate.SessionFactorycom.wushi.smartmeeting.dao.DocumentDAO.sessionFactory; nestedexception isorg.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'sessionFactory' defined in class pathresource [applicationContext.xml]: Invocation of init methodfailed; nested exception is org.hibernate.AnnotationException:@OneToOne or @ManyToOne oncom.wushi.smartmeeting.model.MeetingDocument.meeting references anunknown entity: com.wushi.smartmeeting.model.Meeting
atorg.springframe
==================
解决办法:
在Meeting class 中增加 @Entity
@Table("MEETING")
org.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'documentContr': Injection of autowireddependencies failed; nested exception isorg.springframework.beans.factory.BeanCreationException: Could notautowire field: privatecom.wushi.smartmeeting.service.DocumentServiceImplcom.wushi.smartmeeting.controller.DocumentContr.documentService;nested exception isorg.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'docService': Injection of autowireddependencies failed; nested exception isorg.springframework.beans.factory.BeanCreationException: Could notautowire field: private com.wushi.smartmeeting.dao.DocumentDAOcom.wushi.smartmeeting.service.DocumentServiceImpl.docDao; nestedexception isorg.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'documentDAO': Injection of autowireddependencies failed; nested exception isorg.springframework.beans.factory.BeanCreationException: Could notautowire field: private org.hibernate.SessionFactorycom.wushi.smartmeeting.dao.DocumentDAO.sessionFactory; nestedexception isorg.springframework.beans.factory.BeanCreationException: Errorcreating bean with name 'sessionFactory' defined in class pathresource [applicationContext.xml]: Invocation of init methodfailed; nested exception is org.hibernate.AnnotationException:@OneToOne or @ManyToOne oncom.wushi.smartmeeting.model.MeetingDocument.meeting references anunknown entity: com.wushi.smartmeeting.model.Meeting
==================
解决办法:
在Meeting class 中增加 @Entity
0 0
- Hibernate Annotation的一个错误
- Hibernate Annotation (…
- Hibernate学习-------一个简单的Annotation项目
- Hibernate的一个注释 @Transient
- 一个hibernate annotation 配置及调用的例子
- hibernate的Annotation配置
- Annotation版本的hibernate
- Hibernate 简单的annotation
- Hibernate的Annotation注解
- Hibernate的Annotation注解
- Hibernate的Annotation注解
- hibernate--annotation的使用
- Hibernate的Annotation注解
- Hibernate的Annotation注解
- Hibernate的Annotation注解
- 06hibernate hibernate的annotation
- Hibernate的一个常见的错误
- 浅谈hibernate annotation的使用
- 养花记1
- 养花记0
- 有趣的厕所标志
- Maven 安装Tomcat插件与Jeety插件
- Eclipse常用快捷键
- Hibernate Annotation的一个错误
- customized the date&nb…
- <script>标签的for属性和event属性
- ECMAScript对象3:对象类型
- javascript基础5-修改对象
- javascript基础6-对象继承机制实现
- ubuntu 安装svn
- Android基础学习之异步任务使用Handler
- VS2013 常用快捷键