This commit is contained in:
Filip Izydorczyk
2020-07-27 16:44:04 +02:00
parent 8da4ffeffe
commit 2ab40a24c7
10 changed files with 106 additions and 18 deletions

View File

@ -1,19 +1,17 @@
package com.plannaplan.services;
import com.plannaplan.interfaces.EventCreator;
import com.plannaplan.abstracts.EventWatcher;
import com.plannaplan.repositories.AssignmentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class AssignmentService implements EventCreator {
public class AssignmentService extends EventWatcher {
@Autowired
private AssignmentRepository repo;
@Override
public void update() {
// TODO Auto-generated method stub
public AssignmentService() {
super();
}
}

View File

@ -1,19 +1,17 @@
package com.plannaplan.services;
import com.plannaplan.interfaces.EventCreator;
import com.plannaplan.abstracts.EventWatcher;
import com.plannaplan.repositories.TransferRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class TransferService implements EventCreator {
public class TransferService extends EventWatcher {
@Autowired
private TransferRepository repo;
@Override
public void update() {
// TODO Auto-generated method stub
public TransferService() {
super();
}
}

View File

@ -1,20 +1,18 @@
package com.plannaplan.services;
import com.plannaplan.interfaces.EventCreator;
import com.plannaplan.abstracts.EventWatcher;
import com.plannaplan.repositories.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class UserService implements EventCreator {
public class UserService extends EventWatcher {
@Autowired
private UserRepository repo;
@Override
public void update() {
// TODO Auto-generated method stub
public UserService() {
super();
}
}