Module spring.data.mongodb
Annotation Interface Unwrapped
The annotation to configure a value object as flattened out in the target document.
Depending on the
Depending on the
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.- Since:
- 3.2
- Author:
- Christoph Strobl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceShortcut for an empty unwrapped property.static @interfaceShortcut for a nullable unwrapped property.static enumLoad strategy to be usedonEmpty(). -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionSet the load strategy for the unwrapped object if all contained fields yield null values. -
Optional Element Summary
Optional Elements
-
Element Details
-
onEmpty
Unwrapped.OnEmpty onEmptySet the load strategy for the unwrapped object if all contained fields yield null values.
@Unwrapped.Nullableand@Unwrapped.Emptyoffer shortcuts for this.- Returns:
- never null.
-
-