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

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

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

2、遵从错误提示,为该字段添加上两个属性

@Column(insertable = false,updatable = false)
 
 


猜你喜欢

转载自blog.csdn.net/wwxthinking/article/details/79439956