source: src/main/java/com/example/cookbook/service/impl/KomentariServiceImpl.java@ aea04dd

Last change on this file since aea04dd was aea04dd, checked in by Blazho <aleksandar.blazhevski@…>, 5 months ago

Dodadeni se komentarite pod sekoj recept

  • Property mode set to 100644
File size: 729 bytes
Line 
1package com.example.cookbook.service.impl;
2
3
4import com.example.cookbook.model.Komentar;
5import com.example.cookbook.repository.KomentariRepository;
6import com.example.cookbook.service.KomentariService;
7import org.springframework.stereotype.Service;
8
9import java.sql.SQLException;
10import java.util.List;
11
12@Service
13public class KomentariServiceImpl implements KomentariService {
14
15 private final KomentariRepository komentariRepository;
16
17 public KomentariServiceImpl(KomentariRepository komentariRepository) {
18 this.komentariRepository = komentariRepository;
19 }
20
21 @Override
22 public List<Komentar> findAllById(Long recId) throws SQLException {
23 return komentariRepository.findAllByRecId(recId);
24 }
25}
Note: See TracBrowser for help on using the repository browser.