package webctdbexport.db;
// Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1
import java.math.BigDecimal;
import java.sql.Clob;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
/**
* NotesItem generated by hbm2java
*/
@Entity
@Table(name="NOTES_ITEM"
)
public class NotesItem implements java.io.Serializable {
private BigDecimal id;
private CoTemplate coTemplate;
private CoTocLink coTocLink;
private Person person;
private CmsContentEntry cmsContentEntry;
private String notesType;
private boolean notesHtmlEnable;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private String title;
private Clob content;
public NotesItem() {
}
public NotesItem(BigDecimal id, CoTemplate coTemplate, Person person, String notesType, boolean notesHtmlEnable, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.id = id;
this.coTemplate = coTemplate;
this.person = person;
this.notesType = notesType;
this.notesHtmlEnable = notesHtmlEnable;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
public NotesItem(BigDecimal id, CoTemplate coTemplate, CoTocLink coTocLink, Person person, CmsContentEntry cmsContentEntry, String notesType, boolean notesHtmlEnable, BigDecimal createTs, BigDecimal lastmodifyTs, String title, Clob content) {
this.id = id;
this.coTemplate = coTemplate;
this.coTocLink = coTocLink;
this.person = person;
this.cmsContentEntry = cmsContentEntry;
this.notesType = notesType;
this.notesHtmlEnable = notesHtmlEnable;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.title = title;
this.content = content;
}
@Id
@Column(name="ID", nullable=false, precision=20, scale=0)
public BigDecimal getId() {
return this.id;
}
public void setId(BigDecimal id) {
this.id = id;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="TEMPLATE_ID", nullable=false)
public CoTemplate getCoTemplate() {
return this.coTemplate;
}
public void setCoTemplate(CoTemplate coTemplate) {
this.coTemplate = coTemplate;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="TOC_LINK_ID")
public CoTocLink getCoTocLink() {
return this.coTocLink;
}
public void setCoTocLink(CoTocLink coTocLink) {
this.coTocLink = coTocLink;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="PERSON_ID", nullable=false)
public Person getPerson() {
return this.person;
}
public void setPerson(Person person) {
this.person = person;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="CONTENT_ENTRY_ID")
public CmsContentEntry getCmsContentEntry() {
return this.cmsContentEntry;
}
public void setCmsContentEntry(CmsContentEntry cmsContentEntry) {
this.cmsContentEntry = cmsContentEntry;
}
@Column(name="NOTES_TYPE", nullable=false, length=128)
public String getNotesType() {
return this.notesType;
}
public void setNotesType(String notesType) {
this.notesType = notesType;
}
@Column(name="NOTES_HTML_ENABLE", nullable=false, precision=1, scale=0)
public boolean isNotesHtmlEnable() {
return this.notesHtmlEnable;
}
public void setNotesHtmlEnable(boolean notesHtmlEnable) {
this.notesHtmlEnable = notesHtmlEnable;
}
@Column(name="CREATE_TS", nullable=false, precision=20, scale=0)
public BigDecimal getCreateTs() {
return this.createTs;
}
public void setCreateTs(BigDecimal createTs) {
this.createTs = createTs;
}
@Column(name="LASTMODIFY_TS", nullable=false, precision=20, scale=0)
public BigDecimal getLastmodifyTs() {
return this.lastmodifyTs;
}
public void setLastmodifyTs(BigDecimal lastmodifyTs) {
this.lastmodifyTs = lastmodifyTs;
}
@Column(name="TITLE", length=1000)
public String getTitle() {
return this.title;
}
public void setTitle(String title) {
this.title = title;
}
@Column(name="CONTENT")
public Clob getContent() {
return this.content;
}
public void setContent(Clob content) {
this.content = content;
}
}