backend/buisnesslogic/src/main/java/com/plannaplan/services/AssignmentService.java

22 lines
556 B
Java
Raw Normal View History

2020-07-25 10:38:19 +02:00
package com.plannaplan.services;
2020-07-27 16:44:04 +02:00
import com.plannaplan.abstracts.EventWatcher;
import com.plannaplan.entities.Assignment;
2020-07-25 10:38:19 +02:00
import com.plannaplan.repositories.AssignmentRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
2020-07-27 16:44:04 +02:00
public class AssignmentService extends EventWatcher {
2020-07-25 10:38:19 +02:00
@Autowired
2020-07-25 10:56:11 +02:00
private AssignmentRepository repo;
2020-07-25 10:38:19 +02:00
2020-07-27 16:44:04 +02:00
public AssignmentService() {
super();
2020-07-25 10:38:19 +02:00
}
public void save(Assignment assignment) {
this.repo.save(assignment);
}
2020-07-25 10:38:19 +02:00
}