Skip to content

Conversation

@gavinking
Copy link
Member

@gavinking gavinking commented Dec 5, 2024

[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

@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Dec 5, 2024

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [2d82141, 7682149, 8993bdf, 1e39766]

› This message was automatically generated.

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

Invoking
CollectionPersister.getElementType
should be avoided because it has been deprecated.
&& 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

Invoking
CollectionPersister.getElementType
should be avoided because it has been deprecated.
}
else {
assert uniqueKeyPropertyName != null;
final Type keyType = persister.getPropertyType( uniqueKeyPropertyName );

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
EntityPersister.getPropertyType
should be avoided because it has been deprecated.
// 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

Invoking
EntityPersister.getPropertyType
should be avoided because it has been deprecated.
@gavinking
Copy link
Member Author

superseded by #9476.

@gavinking gavinking closed this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant