@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 AgendaPK)) {
            return false;
        }
        AgendaPK other = (AgendaPK) object;
        if ((this.dataHora == null && other.dataHora != null) || (this.dataHora != null && !this.dataHora.equals(other.dataHora))) {
            return false;
        }
        if (this.idMedico != other.idMedico) {
            return false;
        }
        if (this.idExame != other.idExame) {
            return false;
        }
        if (this.idPaciente != other.idPaciente) {
            return false;
        }
        return true;
    }