@@ -0,0 +1,506 @@
+package dev.openshift.tapestry.angular2.services;%0A%0Aimport dev.openshift.tapestry.angular2.entity.News;%0A%0Aimport org.apache.tapestry5.hibernate.annotations.CommitAfter;%0A%0Aimport java.util.List;%0A%0Apublic interface NewsDAO%0A%7B%0A%09List%3CNews%3E getNews(); %0A%09%0A    List%3CNews%3E getNewsByAuthor(String phoneId);%0A    %0A    News getNewsById(int id);%0A    %0A    News getRandomNews();%0A%0A    @CommitAfter%0A    void add(News news);%0A%0A    @CommitAfter%0A    News incLike(int newsId);%0A%0A    @CommitAfter%0A    News delete(int newsId);%0A%0A%09%0A%0A%09%0A%0A%7D%0A

add NewsDAO interface