org.hibernate.MappingException: Repeated column in mapping for entity

描述:

 

Error creating bean with name 'sessionFactory' defined in class path resource [conf/app-resource.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Repeated column in mapping for entity: eBay.pojo.Notice column: notice (should be mapped with insert="false" update="false")

 

 

org.hibernate.MappingException: Repeated column in mapping for entity: eBay.pojo.Notice column: notice (should be mapped with insert="false" update="false")

 

 

 

原因:bibernate中的文件配置错误

 

 

如何解决:看清是哪个配置文件的问题   对照数据库表来警醒相应的修改

你可能感兴趣的:(Hibernate)