I know this might not be the right place to ask a question like this,
but so far enableExtendedEnhancement
is not documented and I was not able to find any resources on this topic.
Please explain this in detail. Thanks in advance.
I know this might not be the right place to ask a question like this,
but so far enableExtendedEnhancement
is not documented and I was not able to find any resources on this topic.
Please explain this in detail. Thanks in advance.
Normally, Hibernate expects you to access persistent fields via getters and setters. If you use byte code enhancement and access a field in some other way, except getter or setter, Hibernate may fail to register that the field became dirty.
The parameter enableExtendedEnhancement
of hibernate-enhance-maven-plugin
enables additional analysis and interception of field access outside getters and setters. It is processed in FieldAccessEnhancer. However, in the source code of the plugin, it's recommended to use this setting at your own risk.