source: src/main/java/com/example/autopartz/service/impl/RepairServiceImpl.java

main
Last change on this file was d4b888e, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 23 months ago

Added full functionality for adding review

  • Property mode set to 100644
File size: 605 bytes
Line 
1package com.example.autopartz.service.impl;
2
3import com.example.autopartz.model.Repair;
4import com.example.autopartz.repository.RepairRepository;
5import com.example.autopartz.service.RepairService;
6import org.springframework.stereotype.Service;
7
8@Service
9public class RepairServiceImpl implements RepairService {
10 private final RepairRepository repairRepository;
11
12 public RepairServiceImpl(RepairRepository repairRepository) {
13 this.repairRepository = repairRepository;
14 }
15
16 @Override
17 public Repair findById(Integer id) {
18 return repairRepository.findById(id).get();
19 }
20}
Note: See TracBrowser for help on using the repository browser.