Class ProdutoService


  • @Service
    public class ProdutoService
    extends Object
    Classe de serviço com regras de negócio para Produtos
    Author:
    José Henrique
    • Constructor Detail

      • ProdutoService

        public ProdutoService()
    • Method Detail

      • findDistinctByNomeContainingAndCategoriaIn

        public org.springframework.data.domain.Page<Produto> findDistinctByNomeContainingAndCategoriaIn​(String nome,
                                                                                                        List<Integer> categoriaList,
                                                                                                        org.springframework.data.domain.Pageable pageable)
        Procura Produtos e os retornam em um Page
        Parameters:
        nome - Nome do Produto
        categoriaList - Lista de Categorias a ser pesquisadas
        pageable - Um Page
        Returns:
        Um Page com Produtos