@@ -0,0 +1,954 @@
+package rs.radinovic.spring_boot_demo.service;%0A%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Service;%0Aimport rs.radinovic.spring_boot_demo.domain.Item;%0Aimport rs.radinovic.spring_boot_demo.domain.ItemRepository;%0A%0Aimport java.util.List;%0A%0A@Service%0Apublic class ItemService %7B%0A%0A    private final ItemRepository itemRepository;%0A%0A    @Autowired%0A    public ItemService(ItemRepository itemRepository) %7B%0A        this.itemRepository = itemRepository;%0A    %7D%0A%0A    public long saveItem(Item item) %7B%0A        return itemRepository.save(item).getId();%0A    %7D%0A%0A    public Item findItem(long id) %7B%0A        return itemRepository.findOne(id);%0A    %7D%0A%0A    public List%3CItem%3E findAllItems() %7B%0A        return itemRepository.findAll();%0A    %7D%0A%0A    public long updateItem(Item item) %7B%0A        return itemRepository.save(item).getId();%0A    %7D%0A%0A    public void deleteItem(Item item) %7B%0A        itemRepository.delete(item);%0A    %7D%0A%7D%0A

Add ItemService