@@ -0,0 +1,1129 @@
+package dev.openshift.tapestry.angular2.entity;%0A%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.GenerationType;%0Aimport javax.persistence.Id;%0A%0A@Entity%0Apublic class News %7B%0A%0A    private String category;%0A    private String author;%0A    private String content;%0A    private int likes;%0A    @Id%0A    @GeneratedValue(strategy= GenerationType.IDENTITY)%0A    private int id;%0A%0A    public News() %7B%0A    %7D%0A%0A%0A    public String getCategory() %7B%0A        return category;%0A    %7D%0A%0A    public void setCategory(String category) %7B%0A        this.category = category;%0A    %7D%0A%0A    public String getAuthor() %7B%0A        return author;%0A    %7D%0A%0A    public void setAuthor(String author) %7B%0A        this.author = author;%0A    %7D%0A%0A    public String getContent() %7B%0A        return content;%0A    %7D%0A%0A    public void setContent(String content) %7B%0A        this.content = content;%0A    %7D%0A%0A    public int getLikes() %7B%0A        return likes;%0A    %7D%0A%0A    public void setLikes(int likes) %7B%0A        this.likes = likes;%0A    %7D%0A%0A    public int getId() %7B%0A        return id;%0A    %7D%0A%0A    public void setId(int id) %7B%0A        this.id = id;%0A    %7D%0A%7D%0A

add new entity