-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
HHH-15848 Session.isDirty() and more #9379
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
Conversation
this is definitely not perfect yet, but it's definitely a much better foundation than the ancient implementation which was bad and side-effecty in all sorts of ways
| && !collection.isDirty() //optimization | ||
| && loadedPersister != null | ||
| && loadedPersister.isMutable() //optimization | ||
| && ( collection.isDirectlyAccessible() || loadedPersister.getElementType().isMutable() ) //optimization |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
CollectionPersister.getElementType
| && loadedPersister != null | ||
| && loadedPersister.isMutable() //optimization | ||
| // && !loadedPersister.isInverse() // even if it's inverse, could still result in a cache update | ||
| && ( collection.isDirectlyAccessible() || loadedPersister.getElementType().isMutable() ) //optimization |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
CollectionPersister.getElementType
| } | ||
| else { | ||
| assert uniqueKeyPropertyName != null; | ||
| final Type keyType = persister.getPropertyType( uniqueKeyPropertyName ); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
EntityPersister.getPropertyType
| // We now have the value of the property-ref we reference. However, | ||
| // we need to dig a little deeper, as that property might also be | ||
| // an entity type, in which case we need to resolve its identifier | ||
| final Type type = entityPersister.getPropertyType( uniqueKeyPropertyName ); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
EntityPersister.getPropertyType
|
superseded by #9476. |
[Please describe here what your change is about]
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.
https://hibernate.atlassian.net/browse/HHH-15848