}
@Override
public void validate(Vendas entity) throws ServiceBusinessException {
super.validate(entity);
Compras entityToValidate = new Compras();
entityToValidate.setAtivo(true);
entityToValidate.setId(entity.getId());
if(entity.isParcelado() && (entity.getParcelas() == null || entity.getParcelas() == 0))
throw new ServiceBusinessException("O campo parcelas não pode ser vazio.");
if(entity.getItens() == null || entity.getItens().size() == 0)