@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Funcionario other = (Funcionario) obj;
        if (!Objects.equals(this.Expedientenome, other.Expedientenome)) {
            return false;
        }
        if (!Objects.equals(this.Expedienteinicio, other.Expedienteinicio)) {
            return false;
        }
        if (!Objects.equals(this.Expedientefim, other.Expedientefim)) {
            return false;
        }
        if (this.ativo != other.ativo) {
            return false;
        }
        if (!Objects.equals(this.cargo, other.cargo)) {
            return false;
        }
        return true;
    }