Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
729 bytes
|
Line | |
---|
1 | package finki.diplomska.tripplanner.service.impl;
|
---|
2 |
|
---|
3 | import finki.diplomska.tripplanner.models.City;
|
---|
4 | import finki.diplomska.tripplanner.repository.jpa.JpaCityRepository;
|
---|
5 | import finki.diplomska.tripplanner.repository.jpa.JpaCountryRepository;
|
---|
6 | import finki.diplomska.tripplanner.service.CityService;
|
---|
7 | import org.springframework.stereotype.Service;
|
---|
8 |
|
---|
9 | import java.util.List;
|
---|
10 | import java.util.Map;
|
---|
11 |
|
---|
12 | @Service
|
---|
13 | public class CityServiceImpl implements CityService {
|
---|
14 |
|
---|
15 | private final JpaCityRepository cityRepository;
|
---|
16 |
|
---|
17 |
|
---|
18 | public CityServiceImpl(JpaCityRepository cityRepository) {
|
---|
19 | this.cityRepository = cityRepository;
|
---|
20 | }
|
---|
21 |
|
---|
22 | @Override
|
---|
23 | public List<City> findAll() {
|
---|
24 | return this.cityRepository.findAll();
|
---|
25 | }
|
---|
26 |
|
---|
27 |
|
---|
28 |
|
---|
29 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.