private and course

This commit is contained in:
Filip Izydorczyk
2020-07-25 10:56:11 +02:00
parent 7db0d57a99
commit 44b6b794e0
7 changed files with 72 additions and 6 deletions

View File

@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
@Service
public class AssignmentService implements EventCreator {
@Autowired
AssignmentRepository repo;
private AssignmentRepository repo;
@Override
public void update() {

View File

@ -0,0 +1,12 @@
package com.plannaplan.services;
import com.plannaplan.repositories.CourseRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class CourseService {
@Autowired
private CourseRepository repo;
}

View File

@ -8,5 +8,5 @@ import org.springframework.stereotype.Service;
@Service
public class LecturerService {
@Autowired
LecturerRepository repo;
private LecturerRepository repo;
}

View File

@ -9,7 +9,7 @@ import org.springframework.stereotype.Service;
@Service
public class UserService implements EventCreator {
@Autowired
UserRepository repo;
private UserRepository repo;
@Override
public void update() {