Org.hibernate.nonuniqueobjectexception:a different object with the same identifier value is already associated with the session: [com.entity.user.user#40288a814a968946014a96896f710008]
At Org.hibernate.engine.StatefulPersistenceContext.checkUniqueness (statefulpersistencecontext.java:613)
At Org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performUpdate (Defaultsaveorupdateeventlistener.java : 307)
At Org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached ( defaultsaveorupdateeventlistener.java:246)
At Org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate ( defaultsaveorupdateeventlistener.java:112)
At Org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate ( defaultsaveorupdateeventlistener.java:93)
At Org.hibernate.impl.SessionImpl.fireSaveOrUpdate (sessionimpl.java:535)
At Org.hibernate.impl.SessionImpl.saveOrUpdate (sessionimpl.java:527)
At Org.hibernate.engine.cascadingaction$5.cascade (cascadingaction.java:241)
At Org.hibernate.engine.Cascade.cascadeToOne (cascade.java:292)
At Org.hibernate.engine.Cascade.cascadeAssociation (cascade.java:240)
At Org.hibernate.engine.Cascade.cascadeProperty (cascade.java:193)
At Org.hibernate.engine.Cascade.cascade (cascade.java:154)
At Org.hibernate.event.def.AbstractSaveEventListener.cascadeBeforeSave (abstractsaveeventlistener.java:454)
At Org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate (abstractsaveeventlistener.java:288)
At Org.hibernate.event.def.AbstractSaveEventListener.performSave (abstractsaveeventlistener.java:204)
At Org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId (abstractsaveeventlistener.java:144)
At Org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId ( defaultsaveorupdateeventlistener.java:210)
At Org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId ( DEFAULTSAVEEVENTLISTENER.JAVA:56)
At Org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient ( defaultsaveorupdateeventlistener.java:195)
At Org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate (defaultsaveeventlistener.java:50)
At Org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate ( defaultsaveorupdateeventlistener.java:93)
At Org.hibernate.impl.SessionImpl.fireSave (sessionimpl.java:563)
At Org.hibernate.impl.SessionImpl.save (sessionimpl.java:551)
At Org.hibernate.impl.SessionImpl.save (sessionimpl.java:547)
At Com.dao.impl.ReduceHibernateUtil.save2 (reducehibernateutil.java:71)
At Com.dao.impl.Test.main (test.java:33)
2014 Last day, so annoying! This question has never been met! Online find a lot of ways are not solved! And no wifi anymore!