package devopsdistilled.operp.server.data.service.items.impl;

import java.util.LinkedList;
import java.util.List;

import javax.inject.Inject;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Service;

import devopsdistilled.operp.server.data.entity.items.Item;
import devopsdistilled.operp.server.data.repo.items.ItemRepository;
import devopsdistilled.operp.server.data.service.impl.AbstractEntityService;
import devopsdistilled.operp.server.data.service.items.ItemService;

@Service
public class ItemServiceImpl extends AbstractEntityService<Item, Long> implements
		ItemService {

	private static final long serialVersionUID = 7578267584162733059L;

	@Inject
	private ItemRepository itemRepository;

	@Override
	protected JpaRepository<Item, Long> getRepo() {
		return itemRepository;
	}

	@Override
	public List<Item> findAll() {
		List<Item> items = new LinkedList<>();
		items.add(new Item());
		items.add(new Item());
		items.add(new Item());

		return items;
	}
}

@@ -60,61 +60,8 @@
 l;%0A%0A
-import java.util.LinkedList;%0Aimport java.util.List;%0A%0A
 impo
@@ -548,17 +548,19 @@
 m, Long%3E
- 
+%0A%09%09
 implemen
@@ -561,19 +561,17 @@
 plements
-%0A%09%09
+ 
 ItemServ
@@ -789,184 +789,6 @@
 %09%7D%0A%0A
-%09@Override%0A%09public List%3CItem%3E findAll() %7B%0A%09%09List%3CItem%3E items = new LinkedList%3C%3E();%0A%09%09items.add(new Item());%0A%09%09items.add(new Item());%0A%09%09items.add(new Item());%0A%0A%09%09return items;%0A%09%7D%0A
 %7D%0A

Remove @Override findAll() definition