Annotation Interface Embedded
The annotation to configure a value object as embedded in the current table.
Depending on the 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.
- Since:
- 1.1
- Author:
- Bastian Wilhelm, Christoph Strobl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceShortcut for an empty embedded property.static @interfaceShortcut for a nullable embedded property.static enumLoad strategy to be usedonEmpty(). -
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionSet the load strategy for the embedded object if all contained fields yield null values. -
Optional Element Summary
Optional Elements
-
Element Details
-
onEmpty
Embedded.OnEmpty onEmptySet the load strategy for the embedded object if all contained fields yield null values.@Embedded.Nullableand@Embedded.Emptyoffer shortcuts for this.- Returns:
- never null.
-
-