org.hibernate.NonUniqueObjectException:a diffent object with the same identifier value was already associated with the session:
很久没用过ssh框架了,这个错误一直都没完全弄明白,只知道是因为我对同一个id的对象操作了两次引起的,还有就是用hibernate的merger(obj)方法替换sava或saveOrUpdate方法可以解决。
org.hibernate.NonUniqueObjectException:a diffent object with the same identifier value was already associated with the session:
很久没用过ssh框架了,这个错误一直都没完全弄明白,只知道是因为我对同一个id的对象操作了两次引起的,还有就是用hibernate的merger(obj)方法替换sava或saveOrUpdate方法可以解决。