Last change
on this file since cab1b7d was 501396e, checked in by Blazho <aleksandar.blazhevski@…>, 9 months ago |
added missing files
|
-
Property mode
set to
100644
|
File size:
744 bytes
|
Line | |
---|
1 | package com.example.cookbook.service.impl;
|
---|
2 |
|
---|
3 |
|
---|
4 | import com.example.cookbook.model.Slika;
|
---|
5 | import com.example.cookbook.repository.SlikiZaReceptRepository;
|
---|
6 | import com.example.cookbook.service.SlikiService;
|
---|
7 | import org.springframework.stereotype.Service;
|
---|
8 |
|
---|
9 | import java.sql.SQLException;
|
---|
10 | import java.util.List;
|
---|
11 |
|
---|
12 | @Service
|
---|
13 | public class SlikiServiceImpl implements SlikiService {
|
---|
14 |
|
---|
15 | private final SlikiZaReceptRepository slikiZaReceptRepository;
|
---|
16 |
|
---|
17 | public SlikiServiceImpl(SlikiZaReceptRepository slikiZaReceptRepository) {
|
---|
18 | this.slikiZaReceptRepository = slikiZaReceptRepository;
|
---|
19 | }
|
---|
20 |
|
---|
21 | @Override
|
---|
22 | public List<Slika> findAllPicById(Long recId) throws SQLException {
|
---|
23 | return slikiZaReceptRepository.findAllForRecipe(recId);
|
---|
24 | }
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.