source: src/main/java/com/example/baza/repository/DobavuvacRepository.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: 488 bytes
Line 
1package com.example.baza.repository;
2
3
4import com.example.baza.model.Dobavuvac;
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 DobavuvacRepository extends JpaRepository<Dobavuvac, Integer> {
13
14 Optional<Dobavuvac> findById(Integer id);
15
16
17 void deleteById(Integer id);
18
19 List<Dobavuvac> findByImeNaDobavuvac(String imeNaDobavuvac);
20
21
22}
Note: See TracBrowser for help on using the repository browser.