For OneToOne associations where annoations are on the getter methods rather than on the properties, lazy fetch does not work. The load query triggers a full load (extra queries for the associated entities) even before the associated entities themselves are accessed via the getters.
When the annotations are moved to the properties (entity references) the associated entities are loaded only when accessed.
|