@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface Transformation
ReadTransformer
, WriteTransformer
, Transformation can be specified within an Entity, MappedSuperclass and Embeddable class.
Modifier and Type | Optional Element and Description |
---|---|
javax.persistence.FetchType |
fetch
(Optional) Defines whether the value of the field or property should be lazily loaded or must be eagerly fetched.
|
boolean |
optional
(Optional) The optional element is a hint as to whether the value of the field or property may be null.
|
public abstract javax.persistence.FetchType fetch
public abstract boolean optional