@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Candidature other = (Candidature) obj;
        if (this.idCandidat != other.idCandidat) {
            return false;
        }
        if (this.idEtat != other.idEtat) {
            return false;
        }
        if (this.idPromotion != other.idPromotion) {
            return false;
        }
        if ((this.motivation == null) ? (other.motivation != null) : !this.motivation.equals(other.motivation)) {
            return false;
        }
        if ((this.dateCandidature == null) ? (other.dateCandidature != null) : !this.dateCandidature.equals(other.dateCandidature)) {
            return false;
        }
        return true;
    }