a different object with the same identifier value was already associated with the session: 的解决方法 这个问题在我根据id去查我原本密码与新密码对比之后,再saveOrUpdate的时候就报错,错误就是session已经缓存了唯一id这个对象,因此就会出现这样的错误。
摘要由CSDN通过智能技术生成
错误:
Struts has detected an unhandled exception:
Messages:
a different object with the same identifier value was already associated with the session: [cn.wyu.bestHelp.domain.yy.Hospital#402802816343d093016343d155d10000]
a different object with the same identifier value was already associated with the session: [cn.wyu.bestHelp.domain.yy.Hospital#402802816343d093016343d155d10000]; nested exception is org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: [cn.wyu.bestHelp.domain.yy.Hospital#402802816343d093016343d155d10000]
a different object with the same identifier value was already associated with the session: 的解决方法
a different object with the same identifier value was already associated with the session: 的解决方法 这个问题在我根据id去查我原本密码与新密码对比之后,再saveOrUpdate的时候就报错,错误就是session已经缓存了唯一id这个对象,因此就会出现这样的错误。