Пример #1
0
 @Override
 public Set<Group> getAllGroups() {
   List<Group> allGroups = groupRepository.findAllGroups();
   Set<Group> setList = new HashSet<>(allGroups);
   return setList;
 }
Пример #2
0
 @Override
 public Group getGroupById(long id) {
   return groupRepository.findGroupById(id);
 }