@Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TipoServico other = (TipoServico) obj;
        if (this.IdTipoServico != other.IdTipoServico && (this.IdTipoServico == null || !this.IdTipoServico.equals(other.IdTipoServico))) {
            return false;
        }
        return true;
    }