BeanCreationException: Error creating bean with name 'sessionFactory' defined

来源:互联网 发布:利用广告联盟做淘宝客 编辑:程序博客网 时间:2024/05/16 09:23

问题logger:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in URL [file:/D:/hsd/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/lmt/WEB-INF/classes/conf/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Repeated column in mapping for entity: com.fjeport.lmt.entity.TbImportOrder column: WASTE_OR_NOT (should be mapped with insert="false" update="false")

异常原因:
一个pojo中不能有两个属性同时映射到一个数据库字段上
即使是一个属性的两个getter方法也不行

0 0
原创粉丝点击