org.springframework.dao.DuplicateKeyException: 问题

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 这个问题的话原因是在调用持久层类的进行保存域更新的时候,主键或唯一性约束冲突了. 记录下这个问题
原文地址:https://www.cnblogs.com/stockyron/p/4073556.html