source: trip-planner/src/main/java/finki/diplomska/tripplanner/service/impl/CityServiceImpl.java

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 
1package finki.diplomska.tripplanner.service.impl;
2
3import finki.diplomska.tripplanner.models.City;
4import finki.diplomska.tripplanner.repository.jpa.JpaCityRepository;
5import finki.diplomska.tripplanner.repository.jpa.JpaCountryRepository;
6import finki.diplomska.tripplanner.service.CityService;
7import org.springframework.stereotype.Service;
8
9import java.util.List;
10import java.util.Map;
11
12@Service
13public 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.