source: src/main/java/project/educatum/service/impl/StudentHomeworkServiceImpl.java

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 
1package project.educatum.service.impl;
2
3import org.springframework.stereotype.Service;
4import project.educatum.model.exceptions.HomeworkNotFoundException;
5import project.educatum.model.relations.StudentHomeworkRelation;
6import project.educatum.repository.StudentHomeworkRepository;
7import project.educatum.service.StudentHomeworkService;
8
9@Service
10public 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.