import java.util.List; // Data Access Object public interface NewsDao { List findAll(); // List type contains generic News class News findOne(int id); }