source: src/main/java/com/example/eatys_app/repository/SeSostoiOdRepository.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: 447 bytes
Line 
1package com.example.eatys_app.repository;
2
3import com.example.eatys_app.model.*;
4import org.springframework.data.jpa.repository.JpaRepository;
5
6import java.util.Optional;
7
8public interface SeSostoiOdRepository extends JpaRepository<SeSostoiOd, SeSostoiOdId>{
9
10 Optional<SeSostoiOd> findByNaracka(Naracka naracka);
11
12 Optional<SeSostoiOd> findByNarackaAndObrok(Naracka naracka, Obrok obrok);
13
14 void deleteAllByNaracka(Naracka naracka);
15
16}
Note: See TracBrowser for help on using the repository browser.