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