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:
487 bytes
|
Line | |
---|
1 | package com.example.fooddeliverysystem.repository;
|
---|
2 |
|
---|
3 | import com.example.fooddeliverysystem.model.OrderHasFood;
|
---|
4 | import com.example.fooddeliverysystem.model.OrderHasFoodKey;
|
---|
5 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
6 | import org.springframework.stereotype.Repository;
|
---|
7 |
|
---|
8 | import java.util.List;
|
---|
9 |
|
---|
10 | @Repository
|
---|
11 | public interface OrderHasFoodRepository extends JpaRepository<OrderHasFood, OrderHasFoodKey> {
|
---|
12 | List<OrderHasFood> findAllByOrderHasFoodKeyOrderId(Long orderId);
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.