[solved] org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session

org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: Meaning of this exception:If we are trying to save the same identifier (primary key) with different session we will get this error. How I solved ?I have used Transaction and session previosly, then I replaced those things with getHibernateTemplate, getHibernateTemplate().saveOrUpdate(myBean); Then issue got resolved. In

129 total views, no views today

» Read more