Cassandra persistence maps application domain types to Cassandra tables so their data can be stored and retrieved. Spring Data Cassandra uses mapping annotations rather than JPA annotations. section 4.1.3
The main mapping choices are:
- Annotate Ingredient with @Table("ingredients") and its identifier with @PrimaryKey. section 4.1.3
A stored taco
A tacos row can contain a time-based UUID, name, creation date, and an ingredients collection containing values such as Flour Tortilla, Carnitas, Sour Cream, Salsa, and Cheddar.
