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 theProductOnOrdertable.
-
-
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
-
-
-
-
Method Detail
-
getAllByOrderId
List<ProductOnOrder> getAllByOrderId(long id)
Returns all products on a specific order.- Parameters:
id- The ID of theOrderplaced.- Returns:
- A
ListofProductOnOrdermatching the providedOrder.
-
-