1
0
forked from PGL/Clyde

backend Schedule

This commit is contained in:
2024-04-07 14:33:51 +02:00
parent 9937a7db39
commit aa3e1cb868
19 changed files with 662 additions and 8 deletions

View File

@ -0,0 +1,24 @@
package ovh.herisson.Clyde.Services;
import org.springframework.stereotype.Service;
import ovh.herisson.Clyde.Repositories.ScheduleRepository;
import ovh.herisson.Clyde.Tables.Schedule;
@Service
public class ScheduleService {
private final ScheduleRepository scheduleRepo;
public ScheduleService(ScheduleRepository scheduleRepo) {
this.scheduleRepo = scheduleRepo;
}
public Schedule save(Schedule schedule){
return scheduleRepo.save(schedule);
}
public Schedule findById(long id){
return scheduleRepo.findById(id);
}
public void delete(Schedule schedule){
scheduleRepo.delete(schedule);
}
}