Skip to content
Snippets Groups Projects
Commit 22a0c889 authored by Annika Geßmann's avatar Annika Geßmann
Browse files

sorry, reset letzer push waren änderungen dabei die nicht da sein sollten

parent fb54e612
Branches first-version
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ public class GroupManagementController implements iGroupService {
//@RequestMapping(value="/groups")
@Override
public List<Group> findAll() {
List<Group> actual = groupRepository.findAllGroups();
List<Group> actual = groupRepository.findAll();
// List<Group> gruppen = new ArrayList<Group>();
// actual.forEach(element -> gruppen.add(element));
......@@ -38,7 +38,7 @@ public class GroupManagementController implements iGroupService {
//@RequestMapping(value = "/groups/{id}", method = RequestMethod.GET)
@Override
public Group findByID(@PathVariable("ID") int id) {
return groupRepository.findGroupByID(id);
return groupRepository.findByID(id);
}
......
......@@ -11,8 +11,8 @@ import java.util.List;
//Erstellt Zwischenspeicher für die Datenentitäten? "DAO"???
@Service
public interface iGroupRepository extends Repository<Group, Integer> {
public List<Group> findAllGroups();
public Group findGroupByID(int ID);
public List<Group> findAll();
public Group findByID(int ID);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment