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 | |
---|
1 | package com.example.eatys_app.repository;
|
---|
2 |
|
---|
3 | import com.example.eatys_app.model.Cena;
|
---|
4 | import com.example.eatys_app.model.CenaId;
|
---|
5 | import com.example.eatys_app.model.Meni;
|
---|
6 | import com.example.eatys_app.model.Obrok;
|
---|
7 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
8 |
|
---|
9 | import java.util.List;
|
---|
10 | import java.util.Optional;
|
---|
11 |
|
---|
12 | public 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.