Last change
on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
687 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | package finki.diplomska.tripplanner.service.impl;
|
---|
| 2 |
|
---|
| 3 | import finki.diplomska.tripplanner.models.Category;
|
---|
| 4 | import finki.diplomska.tripplanner.repository.jpa.JpaCategoryRepository;
|
---|
| 5 | import finki.diplomska.tripplanner.service.CategoryService;
|
---|
| 6 | import org.springframework.stereotype.Service;
|
---|
| 7 |
|
---|
| 8 | import java.util.List;
|
---|
| 9 |
|
---|
| 10 | @Service
|
---|
| 11 | public class CategoryServiceImpl implements CategoryService {
|
---|
| 12 |
|
---|
| 13 | private final JpaCategoryRepository categoryRepository;
|
---|
| 14 |
|
---|
| 15 | public CategoryServiceImpl(JpaCategoryRepository categoryRepository) {
|
---|
| 16 | this.categoryRepository = categoryRepository;
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | @Override
|
---|
| 20 | public List<Category> findAll() {
|
---|
| 21 | return this.categoryRepository.findAll();
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.