@@ -0,0 +1,1054 @@
+package io.teiler.server.services;%0A%0Aimport io.teiler.server.dto.Debt;%0Aimport io.teiler.server.persistence.entities.DebtEntity;%0Aimport io.teiler.server.persistence.repositories.DebtRepository;%0Aimport io.teiler.server.services.util.GroupUtil;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Service;%0A%0Aimport java.util.LinkedList;%0Aimport java.util.List;%0A%0A/**%0A * Provides service-methods for Groups.%0A *%0A * @author dthoma%0A */%0A@Service%0Apublic class DebtService %7B%0A%0A    private static final Logger LOGGER = LoggerFactory.getLogger(PersonService.class);%0A%0A    @Autowired%0A    private GroupUtil groupUtil;%0A%0A    @Autowired%0A    private DebtRepository debtRepository;%0A%0A    public List%3CDebt%3E getDebt(String groupID) %7B%0A        groupUtil.checkIdExists(groupID);%0A%0A        List%3CDebt%3E debts = new LinkedList%3C%3E();%0A        for (DebtEntity debtEntity : debtRepository.get(groupID)) %7B%0A            debts.add(debtEntity.toDebt());%0A        %7D%0A        return debts;%0A    %7D%0A%7D%0A

add service