Last change
on this file was d3cf3a1, checked in by Marija Micevska <marija_micevska@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
933 bytes
|
Line | |
---|
1 | package project.educatum.service.impl;
|
---|
2 |
|
---|
3 | import org.springframework.stereotype.Service;
|
---|
4 | import project.educatum.model.exceptions.HomeworkNotFoundException;
|
---|
5 | import project.educatum.model.relations.StudentHomeworkRelation;
|
---|
6 | import project.educatum.repository.StudentHomeworkRepository;
|
---|
7 | import project.educatum.service.StudentHomeworkService;
|
---|
8 |
|
---|
9 | @Service
|
---|
10 | public class StudentHomeworkServiceImpl implements StudentHomeworkService {
|
---|
11 |
|
---|
12 | private final StudentHomeworkRepository studentHomeworkRepository;
|
---|
13 |
|
---|
14 | public StudentHomeworkServiceImpl(StudentHomeworkRepository studentHomeworkRepository) {
|
---|
15 | this.studentHomeworkRepository = studentHomeworkRepository;
|
---|
16 | }
|
---|
17 |
|
---|
18 | @Override
|
---|
19 | public void updateDone(Integer homeworkID) {
|
---|
20 | studentHomeworkRepository.updateDone(homeworkID);
|
---|
21 | }
|
---|
22 |
|
---|
23 | @Override
|
---|
24 | public StudentHomeworkRelation findById(Integer id) {
|
---|
25 | return this.studentHomeworkRepository.findById(id);
|
---|
26 | }
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.