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
|
Rev | Line | |
---|
[60de3eb] | 1 | package com.example.autopartz.service.impl;
|
---|
| 2 |
|
---|
| 3 | import com.example.autopartz.model.Category;
|
---|
| 4 | import com.example.autopartz.repository.CategoryRepository;
|
---|
| 5 | import com.example.autopartz.service.CategoryService;
|
---|
| 6 | import org.springframework.stereotype.Service;
|
---|
| 7 |
|
---|
| 8 | import java.util.List;
|
---|
| 9 |
|
---|
| 10 | @Service
|
---|
| 11 | public 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.