問題:Repeated column in mapping for entity: XXXpojo column: XXX列 (should be mapped with insert="false" update="false")
原因:在進行多對一等映射時,某列可以會被重複使用。
解決: 在普通的映射中加上 insertable = false, updatable = false
例:
@Column(name = "XX", insertable = false, updatable = false)