package webctdbexport.db;
// Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1
import java.math.BigDecimal;
import java.util.HashSet;
import java.util.Set;
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.OneToMany;
import javax.persistence.Table;
import javax.persistence.Version;
/**
* SectionBook generated by hbm2java
*/
@Entity
@Table(name="SECTION_BOOK"
)
public class SectionBook implements java.io.Serializable {
private BigDecimal id;
private BigDecimal version;
private CoTemplate coTemplate;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private Short rowsPerPage;
private String letterGradeScheme;
private Set<SectionView> sectionViews = new HashSet<SectionView>(0);
private Set<SectionColumn> sectionColumns = new HashSet<SectionColumn>(0);
public SectionBook() {
}
public SectionBook(BigDecimal id, CoTemplate coTemplate, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.id = id;
this.coTemplate = coTemplate;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
public SectionBook(BigDecimal id, CoTemplate coTemplate, BigDecimal createTs, BigDecimal lastmodifyTs, Short rowsPerPage, String letterGradeScheme, Set<SectionView> sectionViews, Set<SectionColumn> sectionColumns) {
this.id = id;
this.coTemplate = coTemplate;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.rowsPerPage = rowsPerPage;
this.letterGradeScheme = letterGradeScheme;
this.sectionViews = sectionViews;
this.sectionColumns = sectionColumns;
}
@Id
@Column(name="ID", nullable=false, precision=20, scale=0)
public BigDecimal getId() {
return this.id;
}
public void setId(BigDecimal id) {
this.id = id;
}
// @Version
@Column(name="VERSION", nullable=false, precision=20, scale=0)
public BigDecimal getVersion() {
return this.version;
}
public void setVersion(BigDecimal version) {
this.version = version;
}
@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="TEMPLATE_ID", unique=true, nullable=false)
public CoTemplate getCoTemplate() {
return this.coTemplate;
}
public void setCoTemplate(CoTemplate coTemplate) {
this.coTemplate = coTemplate;
}
@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="ROWS_PER_PAGE", precision=3, scale=0)
public Short getRowsPerPage() {
return this.rowsPerPage;
}
public void setRowsPerPage(Short rowsPerPage) {
this.rowsPerPage = rowsPerPage;
}
@Column(name="LETTER_GRADE_SCHEME", length=1000)
public String getLetterGradeScheme() {
return this.letterGradeScheme;
}
public void setLetterGradeScheme(String letterGradeScheme) {
this.letterGradeScheme = letterGradeScheme;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="sectionBook")
public Set<SectionView> getSectionViews() {
return this.sectionViews;
}
public void setSectionViews(Set<SectionView> sectionViews) {
this.sectionViews = sectionViews;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="sectionBook")
public Set<SectionColumn> getSectionColumns() {
return this.sectionColumns;
}
public void setSectionColumns(Set<SectionColumn> sectionColumns) {
this.sectionColumns = sectionColumns;
}
}