@Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (price != null ? price.hashCode() : 0);
        result = 31 * result + (room != null ? room.hashCode() : 0);
        result = 31 * result + (person != null ? person.hashCode() : 0);
        result = 31 * result + (startDay != null ? startDay.hashCode() : 0);
        result = 31 * result + (expectedEndDay != null ? expectedEndDay.hashCode() : 0);
        result = 31 * result + (realEndDay != null ? realEndDay.hashCode() : 0);
        result = 31 * result + countOfGuestsInRoom;
        return result;
    }