您的位置:首页 > 移动开发

Repeated column in mapping for entity:(should be mapped with insert="false" update="false")

2012-03-27 16:01 459 查看
不同的属性映射为相同的字段,重复映射同一个字段,就会出现这个错误;

pring启动失败
org.springframework.beans.factory.access.BootstrapException: Unable to initialize group definition. Group resource name [classpath*:beanRefFactory.xml], factory key [default]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'default' defined in URL [file:/D:/MyEclipse6.5/workSpace/xj_qc_system/webapp/WEB-INF/classes/beanRefFactory.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.context.support.ClassPathXmlApplicationContext]; constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is org.hibernate.MappingException: Repeated column in mapping for entity: com.hollycrm.qcweb.record.po.TblAgentStudyScore column: PARAM1 (should be mapped with insert="false" update="false")
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'default' defined in URL [file:/D:/MyEclipse6.5/workSpace/xj_qc_system/webapp/WEB-INF/classes/beanRefFactory.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.context.support.ClassPathXmlApplicationContext]; constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is org.hibernate.MappingException: Repeated column in mapping for entity: com.hollycrm.qcweb.record.po.TblAgentStudyScore column: PARAM1 (should be mapped with insert="false" update="false")
org.springframework.beans.FatalBeanException: Could not instantiate class [org.springframework.context.support.ClassPathXmlApplicationContext]; constructor threw exception; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is org.hibernate.MappingException: Repeated column in mapping for entity: com.hollycrm.qcweb.record.po.TblAgentStudyScore column: PARAM1 (should be mapped with insert="false" update="false")
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is org.hibernate.MappingException: Repeated column in mapping for entity: com.hollycrm.qcweb.record.po.TblAgentStudyScore column: PARAM1 (should be mapped with insert="false" update="false")
org.hibernate.MappingException: Repeated column in mapping for entity: com.hollycrm.qcweb.record.po.TblAgentStudyScore column: PARAM1 (should be mapped with insert="false" update="false")
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐