@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Survey survey = (Survey) o;

        if (idsurvey != survey.idsurvey) return false;
        if (date != null ? !date.equals(survey.date) : survey.date != null) return false;
        if (question != null ? !question.equals(survey.question) : survey.question != null) return false;

        return true;
    }