main
Last change
on this file since c3268ca was c3268ca, checked in by Stefan Risteski <stefanristeski2001@…>, 9 months ago |
Project
The whole Project
|
-
Property mode
set to
100644
|
File size:
641 bytes
|
Line | |
---|
1 | package com.example.kvizko.service.impl;
|
---|
2 |
|
---|
3 | import com.example.kvizko.models.Quiztaker;
|
---|
4 | import com.example.kvizko.repository.QuizTakerRepository;
|
---|
5 | import com.example.kvizko.service.QuizTakerService;
|
---|
6 | import org.springframework.stereotype.Service;
|
---|
7 |
|
---|
8 | @Service
|
---|
9 | public class QuizTakerServiceImpl implements QuizTakerService {
|
---|
10 |
|
---|
11 | private final QuizTakerRepository quizTakerRepository;
|
---|
12 |
|
---|
13 | public QuizTakerServiceImpl(QuizTakerRepository quizTakerRepository) {
|
---|
14 | this.quizTakerRepository = quizTakerRepository;
|
---|
15 | }
|
---|
16 |
|
---|
17 | @Override
|
---|
18 | public Quiztaker findById(Long id) {
|
---|
19 | return quizTakerRepository.findById(id).orElse(null);
|
---|
20 | }
|
---|
21 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.