org.eclipse.persistence.annotations.ReadTransformer , org.eclipse.persistence.annotations.WriteTransformer , Transformation can be specified within an Entity, MappedSuperclass and Embeddable class.
| Modifier and Type | Method and Description |
|---|---|
| public FetchType | fetch()
(Optional) Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched. |
| public boolean | optional()
(Optional) The optional element is a hint as to whether the value of the field or property may be null. |
| fetch | back to summary |
|---|---|
| public 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. | |
| optional | back to summary |
|---|---|
| public boolean optional() (Optional) The optional element is a hint as to whether the value of the field or property may be null. It is disregarded for primitive types, which are considered non-optional. | |