Inspectopedia
 
2024.3

Specifying FetchType.LAZY for the non-owning side of the @OneToOne association will not affect the loading. The related entity will still be loaded as if the FetchType.EAGER is defined.

Warning
Reliability
New
Last modified: 03 December 2024

Checks for the non-owning side of the @OneToOne associations with the FetchType.Lazy attribute. Specifying FetchType.LAZY for the non-owning side of the @OneToOne association will not affect the loading. The related entity will still be loaded as if the FetchType.EAGER is defined. For more info see the documentation.