轉自:https://blog.51cto.com/chengxuyuan/1786938
org.springframework.dao.DuplicateKeyException: a different object with the same identifier value was already associated with the session: [com.sinosoft.claim.schema.model.PrpLlossInfo#REG13552269089070]; nested exception is org.hibernate.NonUniqueObjectException: a different object with
這個問題的話原因是在調用持久層類的進行保存域更新的時候,主鍵或唯一性約束沖突了. 記錄下這個問題.