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