source: src/main/java/com/example/fooddeliverysystem/repository/OrderRepository.java

Last change on this file was 8d11f8c, checked in by jovanmanchev <jovanmanchev3003@…>, 20 months ago

code added, trial 2

  • Property mode set to 100644
File size: 832 bytes
Line 
1package com.example.fooddeliverysystem.repository;
2
3import com.example.fooddeliverysystem.model.Consumer;
4import com.example.fooddeliverysystem.model.Deliver;
5import com.example.fooddeliverysystem.model.Order;
6import com.example.fooddeliverysystem.model.SalePlace;
7import org.springframework.data.jpa.repository.JpaRepository;
8import org.springframework.data.jpa.repository.query.Procedure;
9import org.springframework.stereotype.Repository;
10
11import java.util.List;
12
13@Repository
14public interface OrderRepository extends JpaRepository<Order, Long> {
15
16 List<Order> findAllBySalePlaceAndOrderStatus(SalePlace salePlace, String orderStatus);
17
18 List<Order> findAllByOrderStatus(String status);
19
20 List<Order> findAllByOrderStatusAndDeliver(String status, Deliver deliver);
21
22 List<Order> findAllByConsumer(Consumer consumer);
23}
Note: See TracBrowser for help on using the repository browser.