Basic.fetch - JPA annotation element
Annotation Element javax.persistence.Basic
FetchType fetch
(Optional) Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched. The
EAGER
strategy is a requirement on the persistence provider runtime that the value must be eagerly fetched. The LAZY
strategy is a hint to the persistence provider runtime. If not specified, defaults to EAGER
. - Default value:
- javax.persistence.FetchType.EAGER
- Since:
- JPA 1.0