Interface PedidoRepository

  • All Superinterfaces:
    org.springframework.data.repository.CrudRepository<Pedido,​Integer>, org.springframework.data.jpa.repository.JpaRepository<Pedido,​Integer>, org.springframework.data.repository.PagingAndSortingRepository<Pedido,​Integer>, org.springframework.data.repository.query.QueryByExampleExecutor<Pedido>, org.springframework.data.repository.Repository<Pedido,​Integer>

    @Repository
    public interface PedidoRepository
    extends org.springframework.data.jpa.repository.JpaRepository<Pedido,​Integer>
    Interface de repositório para Pedidos
    Author:
    José Henrique
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.springframework.data.domain.Page<Pedido> findByCliente​(Cliente cliente, org.springframework.data.domain.Pageable pageRequest)
      Procura Pedidos por um Clinte Pedidos são retornandos em uma página(Page)
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

        count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findById, save
      • Methods inherited from interface org.springframework.data.jpa.repository.JpaRepository

        deleteAllByIdInBatch, deleteAllInBatch, deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getById, getOne, saveAll, saveAllAndFlush, saveAndFlush
      • Methods inherited from interface org.springframework.data.repository.PagingAndSortingRepository

        findAll
      • Methods inherited from interface org.springframework.data.repository.query.QueryByExampleExecutor

        count, exists, findAll, findOne
    • Method Detail

      • findByCliente

        @Transactional(readOnly=true)
        org.springframework.data.domain.Page<Pedido> findByCliente​(Cliente cliente,
                                                                   org.springframework.data.domain.Pageable pageRequest)
        Procura Pedidos por um Clinte Pedidos são retornandos em uma página(Page)
        Parameters:
        cliente - Cliente a ser usado para procurar seus Pedidos
        pageRequest - Página(Page) com suas informações de requisição
        Returns:
        Uma página(Page) com os Pedidos do Cliente