source: src/main/java/com/example/autopartz/repository/DeliveryRepository.java

main
Last change on this file was 9dcbf44, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 23 months ago

Added full functionality for changing delivery status,
added bootstrap for some pages

  • Property mode set to 100644
File size: 521 bytes
Line 
1package com.example.autopartz.repository;
2
3import com.example.autopartz.model.Delivery;
4import com.example.autopartz.model.Deliveryman;
5import com.example.autopartz.model.Order;
6import org.springframework.data.jpa.repository.JpaRepository;
7import org.springframework.stereotype.Repository;
8
9import java.util.List;
10
11@Repository
12public interface DeliveryRepository extends JpaRepository<Delivery,Integer> {
13 List<Delivery> findAllByDeliveryman(Deliveryman deliveryman);
14 List<Delivery> findAllByOrder(Order order);
15}
Note: See TracBrowser for help on using the repository browser.