@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Emprestimo other = (Emprestimo) obj;
        if (this.id != other.id) {
            return false;
        }
        if (!Objects.equals(this.atendente, other.atendente)) {
            return false;
        }
        if (!Objects.equals(this.usuario, other.usuario)) {
            return false;
        }
        if (!Objects.equals(this.exemplares, other.exemplares)) {
            return false;
        }
        if (!Objects.equals(this.dtEmprestimo, other.dtEmprestimo)) {
            return false;
        }
        if (!Objects.equals(this.dtPrevDevolucao, other.dtPrevDevolucao)) {
            return false;
        }
        if (this.qntRenovacaoes != other.qntRenovacaoes) {
            return false;
        }
        return this.devolvido == other.devolvido;
    }