@Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Questionary)) {
            return false;
        }
        Questionary other = (Questionary) object;
        if ((this.idQuestionary == null && other.idQuestionary != null) || (this.idQuestionary != null && !this.idQuestionary.equals(other.idQuestionary))) {
            return false;
        }
        return true;
    }