Class EntitySchemaReader
java.lang.Object
dev.hogwai.dynamodb.simplified.entity.EntitySchemaReader
Reads
@Entity and @KeyComponent
annotations from a class and produces an EntitySchema.
Scans both methods and fields for @KeyComponent annotations
and collects @KeyPrefix values.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> @NonNull EntitySchema<T> Reads the entity schema from an@Entity-annotated class.
-
Method Details
-
read
Reads the entity schema from an@Entity-annotated class.- Type Parameters:
T- the entity type- Parameters:
clazz- the entity class to scan- Returns:
- the parsed entity schema
- Throws:
IllegalArgumentException- if the class is not annotated with@Entity
-