Class Booking

    • Field Detail

      • id

        private long id
      • version

        private long version
      • confirmation

        private String confirmation
      • hotelConfirmations

        private Set<String> hotelConfirmations
    • Constructor Detail

      • Booking

        public Booking()
      • Booking

        public Booking​(long id,
                       long version,
                       String confirmation)
    • Method Detail

      • getId

        public long getId()
      • setId

        private void setId​(long id)
      • getConfirmation

        public String getConfirmation()
      • setConfirmation

        public void setConfirmation​(String confirmation)
      • getVersion

        public long getVersion()
      • setVersion

        public void setVersion​(long version)
      • getHotelConfirmations

        public Set<String> getHotelConfirmations()
      • setHotelConfirmations

        private void setHotelConfirmations​(Set<String> hotelConfirmations)
      • getHotelReservations

        public Set<Reservation> getHotelReservations()
      • setHotelReservations

        private void setHotelReservations​(Set<Reservation> hotelReservations)
      • addHotelReservation

        public void addHotelReservation​(Reservation reservation)
      • getHotelConfirmationsAsBytes

        private byte[] getHotelConfirmationsAsBytes()
                                             throws IOException
        Throws:
        IOException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object