main
Last change
on this file since cab5859 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 | |
---|
1 | package com.example.autopartz.service.impl;
|
---|
2 |
|
---|
3 | import com.example.autopartz.model.Repair;
|
---|
4 | import com.example.autopartz.repository.RepairRepository;
|
---|
5 | import com.example.autopartz.service.RepairService;
|
---|
6 | import org.springframework.stereotype.Service;
|
---|
7 |
|
---|
8 | @Service
|
---|
9 | public 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.