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