-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
HHH-18489 Lazy, unowned one-to-one associations get loaded eagerly in queries - even with bytecode enhancement #8812
base: main
Are you sure you want to change the base?
Conversation
…s (and more) in queries
|
||
final Set<String> initializedLazyAttributeNames = interceptor.getInitializedLazyAttributeNames(); | ||
final Set<String> initializedLazyAttributeNames = interceptor.getInitializedLazyAttributeNames(); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
PersistentAttributeInterceptor.getInitializedLazyAttributeNames
); | ||
if ( set ) { | ||
result = selectedValue; | ||
interceptor.attributeInitialized( fetchGroupAttributeDescriptor.getName() ); |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
PersistentAttributeInterceptor.attributeInitialized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. LGTM as long as this passes the test, but I noticed what could be a bug; see below.
...ain/java/org/hibernate/bytecode/enhance/spi/interceptor/LazyAttributeLoadingInterceptor.java
Outdated
Show resolved
Hide resolved
46c3dbc
to
3f8e726
Compare
… queries - even with bytecode enhancement
@yrodiere I applied your suggestions. What do you think? |
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-18489