Annotation Interface Embedded.Empty
- Enclosing class:
- Embedded
@Embedded(onEmpty=USE_EMPTY)
@Documented
@Retention(RUNTIME)
@Target({FIELD,METHOD})
@Nonnull(when=NEVER)
public static @interface Embedded.Empty
Shortcut for an empty embedded property.
@Embedded.Empty
private Address address;
as alternative to the more verbose
@Embedded(onEmpty = USE_EMPTY)
@javax.annotation.Nonnull(when = When.NEVER)
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:
- ""
-