@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 Applicant)) {
            return false;
        }
        Applicant other = (Applicant) object;
        if ((this.idapplicant == null && other.idapplicant != null) || (this.idapplicant != null && !this.idapplicant.equals(other.idapplicant))) {
            return false;
        }
        return true;
    }