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