Annotation Interface Embedded.Nullable
- Enclosing class:
- Embedded
@Embedded(onEmpty=USE_NULL)
@Documented
@Retention(RUNTIME)
@Target({FIELD,METHOD})
@Nonnull(when=MAYBE)
public static @interface Embedded.Nullable
Shortcut for a nullable embedded property.
@Embedded.Nullable
private Address address;
as alternative to the more verbose
@Embedded(onEmpty = USE_NULL)
@javax.annotation.Nonnull(when = When.MAYBE)
private Address address;
- Since:
- 1.1
- Author:
- Christoph Strobl
- See Also:
-
Optional Element Summary
-
Element Details
-
prefix
- Returns:
- prefix for columns in the embedded value object. An empty
String
by default.
- Default:
- ""
-