|
Juan AMAT We refer to 'instrumentation' to the old bytecode injection code that we have. On hibernate 5 it is no longer maintained, as we have implemented 'enhancemet' with a different design and more features. 'enhancement' is where all the focus is now, and you should use it instead of 'instrumentation'. One example of that is how properties/fields are handled 
To answer your (unrelated) question: on the enhacer, every call to a (lazy) attribute goes through org.hibernate.bytecode.enhance.spi.interceptor.LazyAttributeLoader. It has a Set of fields that have been loaded, and all attributes are loaded one by one (we do have this idea to implement 'fetch groups' in the future). The code in
HHH-10055
was added with that background, so there is a chance that it broke instrumentation expectations. . In regard of this issue, from what I see, the cascades code expects the attributes to be loaded, but on the other hand we have been very careful in hibernate-core no to trigger the loading of those attributes.
|