Ignore:
Timestamp:
07/07/23 12:14:58 (16 months ago)
Author:
HristijanMitic00 <hristijan.mitic.01@…>
Branches:
main
Parents:
1dd9226
Message:

First commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/project/fmo/app/projcetfmo/Service/impl/DostavuvacServiceImpl.java

    r1dd9226 rd14176d  
    1 package project.fmo.app.projcetfmo.Service.impl;public class DostavuvacServiceImpl {
     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    }
    221}
Note: See TracChangeset for help on using the changeset viewer.