读书人

should be 地图ped with insert=quot;fals

发布时间: 2012-08-26 16:48:06 作者: rapoo

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 ")

读书人网 >编程

热点推荐