source: src/main/java/com/example/cookbook/service/impl/KorisniciServiceImpl.java

Last change on this file was d4d8fb9, checked in by Blazho <aleksandar.blazhevski@…>, 9 months ago

Posetitelot komentira i dava ocena za recept(https://develop.finki.ukim.mk/projects/cbdb/wiki/useCase11)

  • Property mode set to 100644
File size: 876 bytes
Line 
1package com.example.cookbook.service.impl;
2
3
4import com.example.cookbook.model.Komentar;
5import com.example.cookbook.model.Korisnik;
6import com.example.cookbook.model.TipKorisnik;
7import com.example.cookbook.repository.KorisniciRepository;
8import com.example.cookbook.service.KorisniciService;
9import org.springframework.stereotype.Service;
10
11import java.sql.SQLException;
12import java.time.LocalDateTime;
13import java.util.List;
14
15@Service
16public class KorisniciServiceImpl implements KorisniciService {
17
18
19 private final KorisniciRepository korisniciRepository;
20
21 public KorisniciServiceImpl(KorisniciRepository korisniciRepository) {
22 this.korisniciRepository = korisniciRepository;
23 }
24
25 @Override
26 public List<Korisnik> findAllByRole(TipKorisnik tipKorisnik) throws SQLException {
27 return korisniciRepository.findAllByRole(tipKorisnik);
28 }
29
30
31
32}
Note: See TracBrowser for help on using the repository browser.