source: src/main/java/project/fmo/app/projcetfmo/Service/impl/DostavuvacServiceImpl.java

main
Last change on this file was d14176d, checked in by HristijanMitic00 <hristijan.mitic.01@…>, 12 months ago

First commit

  • Property mode set to 100644
File size: 691 bytes
Line 
1package project.fmo.app.projcetfmo.Service.impl;
2
3import org.springframework.stereotype.Service;
4import project.fmo.app.projcetfmo.Model.Dostavuvac;
5import project.fmo.app.projcetfmo.Repository.DostavuvacRepository;
6import project.fmo.app.projcetfmo.Service.DostavuvaceService;
7
8@Service
9public class DostavuvacServiceImpl implements DostavuvaceService {
10
11 private final DostavuvacRepository dostavuvacRepository;
12
13 public DostavuvacServiceImpl(DostavuvacRepository dostavuvacRepository) {
14 this.dostavuvacRepository = dostavuvacRepository;
15 }
16
17 @Override
18 public Dostavuvac findById(Integer id) {
19 return dostavuvacRepository.findById(id).orElse(null);
20 }
21}
Note: See TracBrowser for help on using the repository browser.