source: src/main/java/com/example/eatys_app/repository/CenaRepository.java

Last change on this file was b3f2adb, checked in by Aleksandar Siljanoski <acewow3@…>, 14 months ago

Adding project to repo

  • Property mode set to 100644
File size: 573 bytes
Line 
1package com.example.eatys_app.repository;
2
3import com.example.eatys_app.model.Cena;
4import com.example.eatys_app.model.CenaId;
5import com.example.eatys_app.model.Meni;
6import com.example.eatys_app.model.Obrok;
7import org.springframework.data.jpa.repository.JpaRepository;
8
9import java.util.List;
10import java.util.Optional;
11
12public interface CenaRepository extends JpaRepository<Cena, Integer> {
13
14 void deleteById(Integer id);
15
16 Optional<Cena> findById(Integer uid);
17
18 Optional<Cena> findByObrok(Obrok obrok);
19
20 List<Cena> findAllByObrokIn(List<Obrok> obrok);
21}
Note: See TracBrowser for help on using the repository browser.