#27 -- fix out of memory and transactional removing

This commit is contained in:
Anton Romanov 2021-04-28 11:50:17 +04:00
parent 5054224ff3
commit f1cf6c8d2f

View File

@ -10,6 +10,7 @@ import org.springframework.stereotype.Service;
import ru.ulstu.extractor.model.Commit;
import ru.ulstu.extractor.repository.CommitRepository;
import javax.transaction.Transactional;
import java.util.List;
import java.util.stream.Collectors;
@ -39,6 +40,7 @@ public class CommitService {
}).collect(Collectors.toList());
}
@Transactional
public void deleteWithEmptyIds() {
commitRepository.deleteByBranchIsNull();
}