source: src/main/java/com/example/baza/repository/InstancaOdKnigaRepository.java

Last change on this file was ed20c2c, checked in by HumaSejdini <humasejdini12@…>, 2 years ago

Initial commit

  • Property mode set to 100644
File size: 705 bytes
Line 
1package com.example.baza.repository;
2
3
4import com.example.baza.model.InstancaOdKniga;
5import com.example.baza.model.InstancaOdKnigaId;
6import org.springframework.data.jpa.repository.JpaRepository;
7import org.springframework.stereotype.Repository;
8
9import java.util.List;
10import java.util.Optional;
11
12@Repository
13public interface InstancaOdKnigaRepository extends JpaRepository<InstancaOdKniga, InstancaOdKnigaId> {
14 List<InstancaOdKniga> findById_IdNaKniga(Integer idNaKniga);
15
16 List<InstancaOdKniga> findByIdNaKniga_Naslov(String naslov);
17
18 List<InstancaOdKniga> findByIdNaKniga_Avtors_Ime(String ime);
19
20 Optional<InstancaOdKniga> findById(Integer uid);
21
22 void deleteById(Integer id);
23}
Note: See TracBrowser for help on using the repository browser.