This project uses the model defined Cassandra: The Definitive Guide.
This project defines two repositories, HotelRepository
and ReservationRepository
to query information about hotels and reservations. You can read the hotels.cql
and reservations.cql
.
As defined in the book there are nine queries this schema tries to answer:
- Find hotels near given poi
- Find information about a hotel
- Find pois near a hotel
- Find available rooms by hotel / date
- Find amenities for a room
- Find reservations by confirmation number
- Find reservations by hotel and date
- Find reservations by guest name
- Find guest by ID
You can see how queries are defined in their respective repositories. INSERT
statements are defined the test folder.
This repository shows one way to use the asynchronous operations available on Helenus. Part of this is present on the repositories, and another part is on the tests, be sure to check both.