package dev.openshift.tapestry.angular.services;


import dev.openshift.tapestry.angular.data.Comment;
import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import java.util.List;

public interface CommentDAO
{
    List<Comment> getCommentsByPhoneId(int phoneId);

    @CommitAfter
    void add(Comment comment);

}

@@ -86,12 +86,14 @@
 lar.
-data
+entity
 .Com
@@ -255,19 +255,22 @@
 PhoneId(
+Str
 in
-t
+g
  phoneId
@@ -322,10 +322,117 @@
 ment);%0A%0A
+    @CommitAfter%0A    Comment incLike(int commentId);%0A%0A    @CommitAfter%0A    Comment delete(int commentId);%0A%0A
 %7D%0A

Change CommentDao Interface