@Documented @Retention(value=RUNTIME) @Target(value={ANNOTATION_TYPE,FIELD,METHOD}) public @interface Embedded
value of onEmpty() the property is set to null or an empty
instance in the case all embedded values are null when reading from the result set.| Modifier and Type | Required Element and Description |
|---|---|
Embedded.OnEmpty |
onEmpty
Set the load strategy for the embedded object if all contained fields yield null values.
|
public abstract Embedded.OnEmpty onEmpty
@Embedded.Nullable and @Embedded.Empty offer shortcuts for this.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.