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/KupuvacServiceImpl.java

    r1dd9226 rd14176d  
    1 package project.fmo.app.projcetfmo.Service.impl;public class KupuvacServiceImpl {
     1package project.fmo.app.projcetfmo.Service.impl;
     2
     3import org.springframework.stereotype.Service;
     4import project.fmo.app.projcetfmo.Model.Kupuvac;
     5import project.fmo.app.projcetfmo.Repository.KupuvacRepository;
     6import project.fmo.app.projcetfmo.Service.KupuvacService;
     7
     8@Service
     9public 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    }
    221}
Note: See TracChangeset for help on using the changeset viewer.