Class Reservation

    • Field Detail

      • id

        private long id
      • version

        private long version
      • confirmation

        private String confirmation
      • startDate

        private Date startDate
      • endDate

        private Date endDate
      • person

        private Person person
    • Constructor Detail

      • Reservation

        public Reservation()
      • Reservation

        public Reservation​(long id,
                           long version,
                           String confirmation,
                           Person person,
                           Date startDate,
                           Date endDate)
    • Method Detail

      • getId

        public long getId()
      • setId

        private void setId​(long id)
      • getConfirmation

        public String getConfirmation()
      • setConfirmation

        public void setConfirmation​(String confirmation)
      • getPerson

        public Person getPerson()
      • setPerson

        public void setPerson​(Person person)
      • getVersion

        public long getVersion()
      • setVersion

        public void setVersion​(long version)
      • getEndDate

        public Date getEndDate()
      • setEndDate

        public void setEndDate​(Date endDate)
      • getStartDate

        public Date getStartDate()
      • setStartDate

        public void setStartDate​(Date startDate)
      • sameDate

        private static boolean sameDate​(Date lhsDate,
                                        Date rhsDate)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object