2 qq 36128558 qq_36128558 于 2017.09.14 11:49 提问

SSH实体类里面封装别的实体类

不能生成setget方法 生成就会报错
是不是需呀配置什么东西

这是错误

 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settleConfirmNotice': Cannot resolve reference to bean 'settleConfirmNoticeImpl' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settleConfirmNoticeImpl' defined in file [E:\apache-tomcat-6.0.48\webapps\sales\WEB-INF\classes\spring\applicationContext-cxf.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'feeManageService' defined in class path resource [spring/sales/applicationContext-service.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'billNoService' defined in class path resource [spring/sales/applicationContext-service.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [E:\apache-tomcat-6.0.48\webapps\sales\WEB-INF\classes\spring\applicationContext-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: cn.com.cis.acic.sales.taizhangManage.vo.CarTaizhangCondition, at table: PRPSMAIN, for columns: [org.hibernate.mapping.Column(carCond)]
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:479) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:162) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at java.security.AccessController.doPrivileged(Native Method) ~[na:1.6.0_13]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) ~[spring-beans-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728) ~[spring-context-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380) ~[spring-context-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) ~[spring-web-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) ~[spring-web-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) [spring-web-2.5.6.SEC03.jar:2.5.6.SEC03]
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4276) [catalina.jar:6.0.48]
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4779) [catalina.jar:6.0.48]
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:803) [catalina.jar:6.0.48]
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:780) [catalina.jar:6.0.48]
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:583) [catalina.jar:6.0.48]
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1080) [catalina.jar:6.0.48]
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1003) [catalina.jar:6.0.48]
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:507) [catalina.jar:6.0.48]
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1322) [catalina.jar:6.0.48]
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:325) [catalina.jar:6.0.48]
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) [catalina.jar:6.0.48]
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1069) [catalina.jar:6.0.48]
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) [catalina.jar:6.0.48]
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061) [catalina.jar:6.0.48]
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) [catalina.jar:6.0.48]
    at org.apache.catalina.core.StandardService.start(StandardService.java:525) [catalina.jar:6.0.48]
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:761) [catalina.jar:6.0.48]
    at org.apache.catalina.startup.Catalina.start(Catalina.java:595) [catalina.jar:6.0.48]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_13]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_13]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_13]
    at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_13]
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) [bootstrap.jar:6.0.48]
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) [bootstrap.jar:6.0.48]

2个回答

xiaoming120915
xiaoming120915   2017.09.14 13:02

Could not determine type for: cn.com.cis.acic.sales.taizhangManage.vo.CarTaizhangCondition, at table: PRPSMAIN, for columns: [org.hibernate.mapping.Column(carCond)
错误信息提示的很明显了,按照它说的去找

xiaoming120915
xiaoming120915 回复qq_36128558: 把具体代码贴出来看看
2 个月之前 回复
qq_36128558
qq_36128558 如果不生成setget方法就没事
2 个月之前 回复
qq_37192576
qq_37192576   2017.09.14 16:24

你需要一个注解 标识这个不是数据库的字段

qq_36128558
qq_36128558 @Transient这个没用
2 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片