source: src/main/java/com/example/baza/repository/IzdavacRepository.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: 579 bytes
Line 
1package com.example.baza.repository;
2
3
4import com.example.baza.model.Izdavac;
5import org.springframework.data.jpa.repository.JpaRepository;
6import org.springframework.stereotype.Repository;
7
8import java.util.List;
9import java.util.Optional;
10
11@Repository
12public interface IzdavacRepository extends JpaRepository<Izdavac, Integer> {
13 Optional<Izdavac> findById(Integer integer);
14
15 void deleteById(Integer integer);
16
17 List<Izdavac> findByEmail(String email);
18
19 List<Izdavac> findByLokacija(String lokacija);
20
21 List<Izdavac> findByImeNaIzdavac(String imeNaIzdavac);
22
23}
Note: See TracBrowser for help on using the repository browser.