2.5.2.8. Embedded
Use the Embedded marker annotation on embeddable field types.
Embedded fields are mapped as part of the datastore record of the declaring entity.
In our sample model, Author and Company each embed their Address, rather than forming a relation to an Address as a separate entity.
The equivalent XML element is embedded, which expects a single attribute:
-
name: The name of the field or property. This attribute is required.