main
Last change
on this file since 996b8ba was dad5bcd, checked in by trajchevaM <118018439+trajchevaM@…>, 17 months ago |
Renamed services implementations
|
-
Property mode
set to
100644
|
File size:
630 bytes
|
Rev | Line | |
---|
[da44aef] | 1 | package finki.paw5.service.implementation;
|
---|
| 2 |
|
---|
| 3 | import finki.paw5.model.entities.Shelter;
|
---|
| 4 | import finki.paw5.repository.ShelterRepository;
|
---|
| 5 | import finki.paw5.service.ShelterService;
|
---|
| 6 | import org.springframework.stereotype.Service;
|
---|
| 7 |
|
---|
| 8 | import java.util.List;
|
---|
| 9 |
|
---|
| 10 | @Service
|
---|
[dad5bcd] | 11 | public class ShelterServiceImplementation implements ShelterService {
|
---|
[da44aef] | 12 | private final ShelterRepository shelterRepository;
|
---|
| 13 |
|
---|
[dad5bcd] | 14 | public ShelterServiceImplementation(ShelterRepository shelterRepository) {
|
---|
[da44aef] | 15 | this.shelterRepository = shelterRepository;
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | @Override
|
---|
| 20 | public List<Shelter> listShelters() {
|
---|
| 21 | return shelterRepository.findAll();
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.