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 | |
---|
1 | package com.example.fooddeliverysystem.repository;
|
---|
2 |
|
---|
3 | import com.example.fooddeliverysystem.model.Consumer;
|
---|
4 | import com.example.fooddeliverysystem.model.Deliver;
|
---|
5 | import com.example.fooddeliverysystem.model.Order;
|
---|
6 | import com.example.fooddeliverysystem.model.SalePlace;
|
---|
7 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
8 | import org.springframework.data.jpa.repository.query.Procedure;
|
---|
9 | import org.springframework.stereotype.Repository;
|
---|
10 |
|
---|
11 | import java.util.List;
|
---|
12 |
|
---|
13 | @Repository
|
---|
14 | public 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.