Changeset f484b14 for src/main/java/com/example/autopartz/service
- Timestamp:
- 01/06/23 02:51:45 (23 months ago)
- Branches:
- main
- Children:
- d4b888e
- Parents:
- 1bd8d1e
- Location:
- src/main/java/com/example/autopartz/service
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/service/CarService.java
r1bd8d1e rf484b14 7 7 public interface CarService { 8 8 List<Car> findAll(); 9 Car findById(Integer id); 9 10 } -
src/main/java/com/example/autopartz/service/RepairShopService.java
r1bd8d1e rf484b14 7 7 public interface RepairShopService { 8 8 List<RepairShop> findAll(); 9 RepairShop getByName(String name); 10 RepairShop getById(Integer id); 9 11 } -
src/main/java/com/example/autopartz/service/impl/CarServiceImpl.java
r1bd8d1e rf484b14 20 20 return carRepository.findAll(); 21 21 } 22 23 @Override 24 public Car findById(Integer id) { 25 return carRepository.findById(id).get(); 26 } 22 27 } -
src/main/java/com/example/autopartz/service/impl/RepairShopServiceImpl.java
r1bd8d1e rf484b14 20 20 return repairShopRepository.findAll(); 21 21 } 22 23 @Override 24 public RepairShop getByName(String name) { 25 return repairShopRepository.getRepairShopByName(name); 26 } 27 28 @Override 29 public RepairShop getById(Integer id) { 30 return repairShopRepository.findById(id).get(); 31 } 22 32 }
Note:
See TracChangeset
for help on using the changeset viewer.