Checkpoint - unstisfied dependency error ater adding gropus
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user