package com.tddinaction.data.hibernate;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Transient;
import org.hibernate.annotations.GenericGenerator;
@Entity
public class Article {
@Id
@GenericGenerator(name = "system-uuid", strategy = "uuid")
private Long id;
private String title;
private String body;
private List attachments;
@Transient
private String renderedHtml;
public List getAttachments() {
return attachments;
}
public void setAttachments(List attachments) {
this.attachments = attachments;
}
public String getBody() {
return body;
}
public void setBody(String body) {
this.body = body;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getRenderedHtml() {
return renderedHtml;
}
public void setRenderedHtml(String renderedHtml) {
this.renderedHtml = renderedHtml;
}
}