Skip to content

HHH-12007 : Executing JPA query results in persistence of new/unmanaged entity #2054

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

gbadner
Copy link
Contributor

@gbadner gbadner commented Nov 14, 2017

https://hibernate.atlassian.net/browse/HHH-12007

The code in IncrediblySillyJpaMapsIdMappedIdentifierValueMarshaller#persistTransientEntity is getting executed when a transient entity with a transient or detached key-many-to-one is bound to a query.

This PR removes IncrediblySillyJpaMapsIdMappedIdentifierValueMarshaller#persistTransientEntity.

entity,
virtualIdComponent.getPropertyNames()[i]
);
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without the code added above, org.hibernate.test.annotations.derivedidentities.e1.a.DerivedIdentitySimpleParentIdClassDepTest fails because association == null.

@gbadner
Copy link
Contributor Author

gbadner commented Nov 16, 2017

Merged.

@gbadner gbadner closed this Nov 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants