Composite Keys in Cassandra

Introduction A composite key consists of one or more primary key fields. Each field must be of data type supported by underlying data-store. In JPA (Java Persistence API), there are two ways of specifying composite keys: 1. Composite Primary Key: 2. Embedded Primary Key: Above Timeline entity is inspired from famous twissandra example. Starting 1.1 release, Cassandra supports…