vladmihalcea / hypersistence-optimizer

Hypersistence Optimizer allows you to get the most out of JPA and Hibernate. By scanning your application configuration and mappings, Hypersistence Optimizer can tell you what changes you need to do to speed up your data access layer.
https://vladmihalcea.com/hypersistence-optimizer/
Apache License 2.0
318 stars 43 forks source link

Prevent the OneToOneParentSideEvent if the optional attribute is set to false #241

Closed vladmihalcea closed 6 months ago

vladmihalcea commented 7 months ago

From Hibernate 5.2 onwards, if the parent-side @OneToOne has the optional attribute set to false, then the association is set to a Proxy, and so it's not loaded eagerly.

For this reason, this event should be triggered only if the optional attribute is set to the value of true.

vladmihalcea commented 6 months ago

Fixed.