Skip to content

Conversation

mbellade
Copy link
Member

@mbellade mbellade commented Oct 16, 2025

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

Alternative to #11110, which avoids setting lazy properties multiple times if they're set during the load operation.


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.


Comment on lines +1760 to +1764
/**
* Used by Hibernate Reactive
* @deprecated
*/
@Deprecated(since = "7.2", forRemoval = true)
Copy link
Member Author

@mbellade mbellade Oct 16, 2025

Choose a reason for hiding this comment

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

I have separated the logic that checked which attribute to return (comparing field-names) from the protected boolean initializeLazyProperty method, as they seem unrelated, and the only other thing the latter did is invoke the protected void initializeLazyProperty method which actually sets the initialized value.

I've checked and reactive doesn't seem to be overriding this method anywhere, so perhaps we might even delete it (I've marked it as deprecated for now) since it's no longer used, wdyt @ddalto?

@mbellade mbellade force-pushed the HHH-19856 branch 2 times, most recently from e57406a to 0040cda Compare October 16, 2025 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants