不同的屬性映射爲相同的字段,重複映射同一個字段,就會出現這個錯誤;
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")