Spring boot jpa ManyToOne 多对一查询错问排查。

关联查询属于只读行为,默认情况下@JoinColumn 中 insertable 和 updatable 是true 支持新增或更新列表。只读查询请设置为false,否则启动为报错

Caused by: org.hibernate.MappingException: Repeated column in mapping for entity: cn.**.RcustomerModelDimensionAttribute column: attribute_code (should be mapped with insert="false" update="false")

image.png