org.springframework.dao.DuplicateKeyException: 问题

时间:2019-08-31 13:21:35   收藏:0   阅读:50

转自: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

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

原文:https://www.cnblogs.com/sharpest/p/11438078.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!