source: src/main/java/com/example/autopartz/service/impl/CategoryServiceImpl.java@ 60de3eb

main
Last change on this file since 60de3eb was 60de3eb, checked in by andrejtodorovski <82031894+andrejtodorovski@…>, 18 months ago

Added master template and added filtering parts by car and category

  • Property mode set to 100644
File size: 643 bytes
Line 
1package com.example.autopartz.service.impl;
2
3import com.example.autopartz.model.Category;
4import com.example.autopartz.repository.CategoryRepository;
5import com.example.autopartz.service.CategoryService;
6import org.springframework.stereotype.Service;
7
8import java.util.List;
9
10@Service
11public class CategoryServiceImpl implements CategoryService {
12 private final CategoryRepository categoryRepository;
13
14 public CategoryServiceImpl(CategoryRepository categoryRepository) {
15 this.categoryRepository = categoryRepository;
16 }
17
18 @Override
19 public List<Category> findAll() {
20 return categoryRepository.findAll();
21 }
22}
Note: See TracBrowser for help on using the repository browser.