main
Last change
on this file since d14176d was d14176d, checked in by HristijanMitic00 <hristijan.mitic.01@…>, 12 months ago |
First commit
|
-
Property mode
set to
100644
|
File size:
647 bytes
|
Line | |
---|
1 | package project.fmo.app.projcetfmo.Service.impl;
|
---|
2 |
|
---|
3 | import org.springframework.stereotype.Service;
|
---|
4 | import project.fmo.app.projcetfmo.Model.Kupuvac;
|
---|
5 | import project.fmo.app.projcetfmo.Repository.KupuvacRepository;
|
---|
6 | import project.fmo.app.projcetfmo.Service.KupuvacService;
|
---|
7 |
|
---|
8 | @Service
|
---|
9 | public class KupuvacServiceImpl implements KupuvacService {
|
---|
10 |
|
---|
11 | private final KupuvacRepository kupuvacRepository;
|
---|
12 |
|
---|
13 | public KupuvacServiceImpl(KupuvacRepository kupuvacRepository) {
|
---|
14 | this.kupuvacRepository = kupuvacRepository;
|
---|
15 | }
|
---|
16 |
|
---|
17 | @Override
|
---|
18 | public Kupuvac findById(Integer id) {
|
---|
19 | return kupuvacRepository.findById(id).orElse(null);
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.