Interface ProductOnOrderRepository

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

    public interface ProductOnOrderRepository
    extends org.springframework.data.jpa.repository.JpaRepository<ProductOnOrder,​Long>
    The ProductOnOrderRepository contains methods used to query the database for items in the ProductOnOrder table.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<ProductOnOrder> getAllByOrderId​(long id)
      Returns all products on a specific order.
      • Methods inherited from interface org.springframework.data.repository.CrudRepository

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

        deleteAllInBatch, deleteInBatch, findAll, findAll, findAll, findAll, findAllById, flush, getOne, saveAll, 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

      • getAllByOrderId

        List<ProductOnOrder> getAllByOrderId​(long id)
        Returns all products on a specific order.
        Parameters:
        id - The ID of the Order placed.
        Returns:
        A List of ProductOnOrder matching the provided Order.