should be mapped with insert="false"

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

com.xxx.entity.RoleAuthority column: ROLE_ID (should be mapped with insert="false"

update="false")

一个类中两个属性映射的列名一样产生冲突@JoinColumn(name = "ROLE_ID ")

你可能感兴趣的:(insert)