Annotation Interface Entity
Marks a class as an entity type for single-table DynamoDB designs.
The discriminator() value is stored in the
discriminatorAttribute() attribute (default "_type")
and used by the entity subsystem to identify which entity type a given
item represents. The table() specifies the DynamoDB table name.
When used together with @KeyComponent, the entity
subsystem automatically computes composite key values and filters
queries by discriminator.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescription@NonNull StringThe attribute name used to store the discriminator value.
-
Element Details
-
discriminator
@NonNull String discriminatorThe discriminator value stored in the discriminator attribute.- Returns:
- the discriminator value
-
discriminatorAttribute
@NonNull String discriminatorAttributeThe attribute name used to store the discriminator value.- Returns:
- the discriminator attribute name
- Default:
"_type"
-
table
-