source: src/main/java/com/example/medweb/service/impl/PregledServiceImpl.java

Last change on this file was e5fefbd, checked in by Anita Terziska <63020646+Nit4e@…>, 2 years ago

initial commit

  • Property mode set to 100644
File size: 624 bytes
Line 
1package com.example.medweb.service.impl;
2
3import com.example.medweb.model.Pregled;
4import com.example.medweb.repository.PregledRepository;
5import com.example.medweb.service.PregledService;
6import org.springframework.stereotype.Service;
7
8import java.util.List;
9
10
11@Service
12public class PregledServiceImpl implements PregledService {
13
14 private final PregledRepository pregledRepository;
15
16 public PregledServiceImpl(PregledRepository pregledRepository) {
17 this.pregledRepository = pregledRepository;
18 }
19
20 @Override
21 public List<Pregled> findAll() {
22 return this.pregledRepository.findAll();
23 }
24}
Note: See TracBrowser for help on using the repository browser.