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:
500 bytes
|
Line | |
---|
1 | package com.example.fooddeliverysystem.repository;
|
---|
2 |
|
---|
3 | import com.example.fooddeliverysystem.model.FoodItem;
|
---|
4 | import com.example.fooddeliverysystem.model.Price;
|
---|
5 | import com.example.fooddeliverysystem.model.PriceKey;
|
---|
6 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
7 | import org.springframework.stereotype.Repository;
|
---|
8 |
|
---|
9 | import java.util.List;
|
---|
10 |
|
---|
11 |
|
---|
12 | @Repository
|
---|
13 | public interface PriceRepository extends JpaRepository<Price, PriceKey> {
|
---|
14 | List<Price> findAllByPriceKey_FoodItem(FoodItem foodItem);
|
---|
15 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.