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 | |
---|
1 | package com.example.baza.repository;
|
---|
2 |
|
---|
3 |
|
---|
4 | import com.example.baza.model.InstancaOdKniga;
|
---|
5 | import com.example.baza.model.InstancaOdKnigaId;
|
---|
6 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
7 | import org.springframework.stereotype.Repository;
|
---|
8 |
|
---|
9 | import java.util.List;
|
---|
10 | import java.util.Optional;
|
---|
11 |
|
---|
12 | @Repository
|
---|
13 | public 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.