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 { 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 } 2 21 }
Note:
See TracChangeset
for help on using the changeset viewer.