java - Hibernate NonUniqueObjectException on merge() , update() -


i errror while updating objects using method update()

org.springframework.orm.hibernate3.hibernatesystemexception: different object same identifier value associated session

when use method merge() error

org.hibernate.nonuniqueobjectexception: different object same identifier value associated session.

please help.

you need implement 'hashcode' , 'equals' methods right, see here. take care not use id unique property -> separating object id , business key.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -