Line | |
---|
1 | package com.example.cookbook.service.impl;
|
---|
2 |
|
---|
3 |
|
---|
4 | import com.example.cookbook.model.Komentar;
|
---|
5 | import com.example.cookbook.model.Korisnik;
|
---|
6 | import com.example.cookbook.model.TipKorisnik;
|
---|
7 | import com.example.cookbook.repository.KorisniciRepository;
|
---|
8 | import com.example.cookbook.service.KorisniciService;
|
---|
9 | import org.springframework.stereotype.Service;
|
---|
10 |
|
---|
11 | import java.sql.SQLException;
|
---|
12 | import java.time.LocalDateTime;
|
---|
13 | import java.util.List;
|
---|
14 |
|
---|
15 | @Service
|
---|
16 | public 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.