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