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

这个问题的话原因是在调用持久层类的进行保存域更新的时候,主键或唯一性约束冲突了. 记录下这个问题.

posted @ 2020-12-27 21:44  快乐的小鸟6  阅读(185)  评论(0编辑  收藏  举报