package dev.openshift.tapestry.angular.data;


public class Comment {

    private String phoneId;
    private String author;
    private String content;
    private int likes;
    private int id;

    public Comment() {
    }


    public String getPhoneId() {
        return phoneId;
    }

    public void setPhoneId(String phoneId) {
        this.phoneId = phoneId;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getLikes() {
        return likes;
    }

    public void setLikes(int likes) {
        this.likes = likes;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}

@@ -39,16 +39,168 @@
 .data;%0A%0A
+import javax.persistence.Entity;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.GenerationType;%0Aimport javax.persistence.Id;%0A%0A@Entity
 %0Apublic 
@@ -318,24 +318,87 @@
  int likes;%0A
+    @Id%0A    @GeneratedValue(strategy= GenerationType.IDENTITY)%0A
     private 

Add Comment DAO