24.2.46. @LazyToOne
The @LazyToOne
annotation is used to specify the laziness options, represented by LazyToOneOption
, available for a @OneToOne
or @ManyToOne
association.
</div>
LazyToOneOption
defines the following alternatives:
</div>
Eagerly load the association. This one is not needed since the JPA FetchType.EAGER
offers the same behavior.
</dd>
This option will fetch the association lazily while returning real entity object.
</dd>
This option will fetch the association lazily while returning a proxy instead.
</dd> </dl> </div> </div>