Provide details "An entity copy was already assigned to a different entity."

Description

When new IllegalStateException( "An entity copy was already assigned to a different entity." ) is thrown in EventCache.put(), please provide details about the entity class/id for easier debugging.

Environment

None

Activity

Show:
Mani
March 7, 2013, 5:26 PM

I am facing the same problem. Started getting this error on a ManyToMany association after upgrading Hibernate to 4.1.6.Final. Is it going to be fixed soon?
If anyone have a workaround other than downgrading Hibernate, please do share.

keep smile
April 1, 2013, 3:19 PM
Edited

I have the same problem with version 4.1.9 and I have to stick to at lease 4.1.6 since I need to use stable(???) multi-tenancy in Hibernate. No workaround or fix so far? Any help would be much appreciated.

Brett Meyer
April 11, 2013, 7:38 PM
Edited

As already mentioned, this ticket will solely add details to the thrown exceptions. If there are issues that cause the exception, please first discuss them in the forums. If there's an actual bug and a reproduceable test case, feel free to open new tickets.

Thank you to for the pull request! https://github.com/hibernate/hibernate-orm/pull/502

Sekhar Polepeddi
October 22, 2013, 11:58 PM

This is not updated in later versions. 4.2.x

Brett Meyer
October 23, 2013, 2:26 AM

, see my comment on

Fixed

Assignee

Brett Meyer

Reporter

Mattias Jiderhamn

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

Yes, likely

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure