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.
value
onEmpty()
static @interface
Embedded.Empty
Embedded.Nullable
static enum
Embedded.OnEmpty
onEmpty
String
prefix
@Embedded.Nullable and @Embedded.Empty offer shortcuts for this.
@Embedded.Nullable
@Embedded.Empty
null
""