@@ -0,0 +1,1998 @@
+package de.starwit.lirejarp.entity;%0D%0A%0D%0Aimport java.util.Date;%0D%0A%0D%0Aimport javax.persistence.Column;%0D%0Aimport javax.persistence.Entity;%0D%0Aimport javax.persistence.JoinColumn;%0D%0Aimport javax.persistence.ManyToOne;%0D%0Aimport javax.persistence.Table;%0D%0Aimport javax.persistence.Temporal;%0D%0Aimport javax.persistence.TemporalType;%0D%0Aimport javax.validation.constraints.NotNull;%0D%0Aimport javax.validation.constraints.Size;%0D%0Aimport javax.xml.bind.annotation.XmlRootElement;%0D%0A%0D%0Aimport org.hibernate.validator.constraints.NotBlank;%0D%0A%0D%0A@XmlRootElement%0D%0A@Entity%0D%0A@Table(name=%22NEWS%22)%0D%0Apublic class NewsEntity extends AbstractEntity %7B%0D%0A%09%0D%0A%09private static final long serialVersionUID = -3717230832637971328L;%0D%0A%09%0D%0A%09@NotBlank%0D%0A%09@Size(max = 100)%0D%0A%09private String title;%0D%0A%09%0D%0A%09@NotNull%0D%0A%09private Date publishedAt;%0D%0A%09%0D%0A%09@NotBlank%0D%0A%09@Size(max = 100)%0D%0A%09private String publishedBy;%0D%0A%09%0D%0A%09@NotBlank%0D%0A%09@Size(max = 1000)%0D%0A%09private String content;%0D%0A%09%0D%0A%09private CategoryEntity category;%0D%0A%09%0D%0A%09@Column(name=%22TITLE%22, nullable = false, length=100)%0D%0A%09public String getTitle() %7B%0D%0A%09%09return title;%0D%0A%09%7D%0D%0A%0D%0A%09public void setTitle(String title) %7B%0D%0A%09%09this.title = title;%0D%0A%09%7D%0D%0A%09%0D%0A%09@Column(name=%22PUBLISHED_BY%22, nullable = false, length=100)%0D%0A%09public String getPublishedBy() %7B%0D%0A%09%09return publishedBy;%0D%0A%09%7D%0D%0A%0D%0A%09public void setPublishedBy(String publishedBy) %7B%0D%0A%09%09this.publishedBy = publishedBy;%0D%0A%09%7D%0D%0A%0D%0A%09@Column(name=%22CONTENT%22, nullable = false, length=1000)%0D%0A%09public String getContent() %7B%0D%0A%09%09return content;%0D%0A%09%7D%0D%0A%0D%0A%09public void setContent(String content) %7B%0D%0A%09%09this.content = content;%0D%0A%09%7D%0D%0A%0D%0A%09@Column(name = %22PUBLISHED_AT%22, nullable = false)%0D%0A%09@Temporal(TemporalType.TIMESTAMP)%0D%0A%09public Date getPublishedAt() %7B%0D%0A%09%09return publishedAt;%0D%0A%09%7D%0D%0A%0D%0A%09public void setPublishedAt(Date publishedAt) %7B%0D%0A%09%09this.publishedAt = publishedAt;%0D%0A%09%7D%0D%0A%09%0D%0A%09@ManyToOne%0D%0A%09@JoinColumn(name = %22CATEGORY_ID%22, nullable = true)%0D%0A%09public CategoryEntity getCategory() %7B%0D%0A%09%09return category;%0D%0A%09%7D%0D%0A%0D%0A%09public void setCategory(CategoryEntity category) %7B%0D%0A%09%09this.category = category;%0D%0A%09%7D%0D%0A%09%0D%0A%09%0D%0A%7D%0D%0A

rename paths, add deployment for arquillian tests