source: trip-planner/src/main/java/finki/diplomska/tripplanner/service/impl/CountryServiceImpl.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: 673 bytes
Line 
1package finki.diplomska.tripplanner.service.impl;
2
3import finki.diplomska.tripplanner.models.Country;
4import finki.diplomska.tripplanner.repository.jpa.JpaCountryRepository;
5import finki.diplomska.tripplanner.service.CountryService;
6import org.springframework.stereotype.Service;
7
8import java.util.List;
9
10@Service
11public class CountryServiceImpl implements CountryService {
12
13 private final JpaCountryRepository countryRepository;
14
15 public CountryServiceImpl(JpaCountryRepository countryRepository) {
16 this.countryRepository = countryRepository;
17 }
18
19 @Override
20 public List<Country> findAll() {
21 return this.countryRepository.findAll();
22 }
23}
Note: See TracBrowser for help on using the repository browser.