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;
/**
* MyNotepad generated by hbm2java
*/
@Entity
@Table(name="MY_NOTEPAD"
)
public class MyNotepad implements java.io.Serializable {
private BigDecimal id;
private Person person;
private String shortText;
private boolean priority;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private Clob text;
public MyNotepad() {
}
public MyNotepad(BigDecimal id, Person person, String shortText, boolean priority, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.id = id;
this.person = person;
this.shortText = shortText;
this.priority = priority;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
public MyNotepad(BigDecimal id, Person person, String shortText, boolean priority, BigDecimal createTs, BigDecimal lastmodifyTs, Clob text) {
this.id = id;
this.person = person;
this.shortText = shortText;
this.priority = priority;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.text = text;
}
@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="PERSON_ID", nullable=false)
public Person getPerson() {
return this.person;
}
public void setPerson(Person person) {
this.person = person;
}
@Column(name="SHORT_TEXT", nullable=false, length=800)
public String getShortText() {
return this.shortText;
}
public void setShortText(String shortText) {
this.shortText = shortText;
}
@Column(name="PRIORITY", nullable=false, precision=1, scale=0)
public boolean isPriority() {
return this.priority;
}
public void setPriority(boolean priority) {
this.priority = priority;
}
@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="TEXT")
public Clob getText() {
return this.text;
}
public void setText(Clob text) {
this.text = text;
}
}