[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6305) IncrediblySillyJpaMapsIdMappedIdentifierValueMarshaller attempts to persist detached entities that are part of a composite Primary key for another entity
Paul Nardone (JIRA)
noreply at atlassian.com
Thu Jun 9 09:28:24 EDT 2011
IncrediblySillyJpaMapsIdMappedIdentifierValueMarshaller attempts to persist detached entities that are part of a composite Primary key for another entity
---------------------------------------------------------------------------------------------------------------------------------------------------------
Key: HHH-6305
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6305
Project: Hibernate Core
Issue Type: Bug
Components: core, entity-manager
Affects Versions: 3.6.5
Reporter: Paul Nardone
Attachments: test.zip
I have an entity (BookVersion) with a composite ID consisting of many-to-one links to other entities in the system (BookID,Library). The (BookVersion) entity has an IdClass (BookVersionPK) which maps these to Long values.
When I call merge on a detached instance of the entity (BookVersion) IncrediblySillyJpaMapsIdMappedIdentifierValueMarshaller attempts to find the ID entities (BookID,Library) in the current context these fail which results in "Performing implicit derived identity cascade" which attempts to persist the detached ID entities (BookID,Library)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list