Class ReservationMongoRepository

java.lang.Object
io.github.marcopaglio.booking.repository.mongo.MongoRepository<Reservation>
io.github.marcopaglio.booking.repository.mongo.ReservationMongoRepository
All Implemented Interfaces:
ReservationRepository

public class ReservationMongoRepository extends MongoRepository<Reservation> implements ReservationRepository
Implementation of repository layer through MongoDB for Reservation entities of the booking application.
  • Constructor Details

    • ReservationMongoRepository

      public ReservationMongoRepository(com.mongodb.client.MongoClient client, com.mongodb.client.ClientSession session, String databaseName)
      Constructs a repository layer for Reservation entities using MongoDB database. The construction generates and configures a collection for using by the repository.
      Parameters:
      client - the MongoClient used to retrieve the collection.
      session - the ClientSession used to communicate with MongoDB database.
      databaseName - the name of the database in which the repository works.
  • Method Details