@Retention(value=RUNTIME) @Target(value={FIELD,METHOD,ANNOTATION_TYPE}) @Documented 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 © 2017–2021 Pivotal Software, Inc.. All rights reserved.