Checkpoint - unstisfied dependency error ater adding gropus

This commit is contained in:
Filip Izydorczyk
2020-08-06 15:18:18 +02:00
parent 368b4066c0
commit 2f63d05c6c
4 changed files with 56 additions and 1 deletions

View File

@ -1,5 +1,6 @@
package com.plannaplan.services;
import com.plannaplan.entities.Groups;
import com.plannaplan.repositories.GroupRepository;
import org.springframework.beans.factory.annotation.Autowired;
@ -9,4 +10,12 @@ import org.springframework.stereotype.Service;
public class GroupService {
@Autowired
private GroupRepository repo;
public Groups find(int time, int capacity, String room) {
return this.repo.find(time, room, capacity);
}
public void save(Groups group) {
this.repo.save(group);
}
}