2014 Last day, so annoying! This question has never been met! Online find a lot of ways are not solved! And no wifi anymore!

Source: Internet
Author: User


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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.