Last change
on this file was 59329aa, checked in by Ema <ema_spirova@…>, 3 years ago |
adding photos
|
-
Property mode
set to
100644
|
File size:
723 bytes
|
Line | |
---|
1 | package finki.diplomska.tripplanner.service.impl;
|
---|
2 |
|
---|
3 | import finki.diplomska.tripplanner.models.Images;
|
---|
4 | import finki.diplomska.tripplanner.repository.jpa.JpaImageRepository;
|
---|
5 | import finki.diplomska.tripplanner.service.ImagesService;
|
---|
6 | import org.springframework.stereotype.Service;
|
---|
7 |
|
---|
8 | import java.util.List;
|
---|
9 |
|
---|
10 | @Service
|
---|
11 | public class ImagesServiceImpl implements ImagesService {
|
---|
12 |
|
---|
13 | private final JpaImageRepository jpaImageRepository;
|
---|
14 |
|
---|
15 | public ImagesServiceImpl(JpaImageRepository jpaImageRepository) {
|
---|
16 | this.jpaImageRepository = jpaImageRepository;
|
---|
17 | }
|
---|
18 |
|
---|
19 | @Override
|
---|
20 | public List<Images> getAllImagesForLocation(Long locationId) {
|
---|
21 | return this.jpaImageRepository.getAllImagesForLocation(locationId);
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.