package net.dontdrinkandroot.example.angularrestspringsecurity.dao;

import java.util.List;

import net.dontdrinkandroot.example.angularrestspringsecurity.entity.Entity;


public interface Dao<T extends Entity, I>
{

	List<T> findAll();


	T find(I id);


	T save(T newsEntry);


	void delete(I id);
}
package net.dontdrinkandroot.example.angularrestspringsecurity.dao;

import java.util.List;

import net.dontdrinkandroot.example.angularrestspringsecurity.entity.Entity;

public interface Dao<T extends Entity, I>
{

	List<T> findAll();


	T find(I id);


	T save(T newsEntry);


	void delete(I id);
}
test modified class