Last change
on this file since cab1b7d was cab1b7d, checked in by Blazho <aleksandar.blazhevski@…>, 5 months ago |
Added naracki page with view of all
|
-
Property mode
set to
100644
|
File size:
677 bytes
|
Line | |
---|
1 | package com.example.cookbook.service.impl;
|
---|
2 |
|
---|
3 |
|
---|
4 | import com.example.cookbook.model.Naracka;
|
---|
5 | import com.example.cookbook.repository.NarackiRepository;
|
---|
6 | import com.example.cookbook.service.NarackiService;
|
---|
7 | import org.springframework.stereotype.Service;
|
---|
8 |
|
---|
9 | import java.sql.SQLException;
|
---|
10 | import java.util.List;
|
---|
11 |
|
---|
12 | @Service
|
---|
13 | public class NarackiServiceImpl implements NarackiService {
|
---|
14 |
|
---|
15 | private final NarackiRepository narackiRepository;
|
---|
16 |
|
---|
17 | public NarackiServiceImpl(NarackiRepository narackiRepository) {
|
---|
18 | this.narackiRepository = narackiRepository;
|
---|
19 | }
|
---|
20 |
|
---|
21 | @Override
|
---|
22 | public List<Naracka> listAll() throws SQLException {
|
---|
23 | return narackiRepository.findAll();
|
---|
24 | }
|
---|
25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.