You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project after upgrading from version 5.2 to 5.3 there is a problem with lazy properties that have nosetter.pascal-underscore accessor in their mapping.
After accessing the property it remains uninitialized
Each call to a property getter returns a new object
I have added tests which demonstrate the problem #3331
The text was updated successfully, but these errors were encountered:
sashakboo
changed the title
Lazy property with nosetter.pascalcase-underscore accessor still uninitialized
Lazy property with nosetter.pascalcase-underscore accessor remains uninitialized
Jun 21, 2023
The 5.3.x+ lazy property implementation (#1943 and #1947) expects that both the getter and setter go through interception. And the following method must be called:
However, with field accessor, no interception occurs. This means that lazy property handling is broken in multiple places for nosetter/field lazy property accessors. In addition to the added test, the existing CanMergeTransientWithLazyProperty is also broken. I suspect that fetching such properties in a query would not work either.
I took a quick look at how it is handled in Hibernate and it looks like they do not depend on interception in setter (at least for property initialization I see multiple attributeInitialized calls).
In my project after upgrading from version 5.2 to 5.3 there is a problem with lazy properties that have nosetter.pascal-underscore accessor in their mapping.
I have added tests which demonstrate the problem #3331
There is no such problem in version 5.2 #3332
The text was updated successfully, but these errors were encountered: