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.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;
/**
* CoToc generated by hbm2java
*/
@Entity
@Table(name="CO_TOC"
)
public class CoToc implements java.io.Serializable {
private BigDecimal id;
private CmsContentEntry cmsContentEntry;
private boolean format;
private boolean hiddenmanuFlag;
private boolean tocDisplay;
private boolean firstPageDisplay;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private Set<TocBookmark> tocBookmarks = new HashSet<TocBookmark>(0);
private Set<CoActionmenu> coActionmenus = new HashSet<CoActionmenu>(0);
public CoToc() {
}
public CoToc(CmsContentEntry cmsContentEntry, boolean format, boolean hiddenmanuFlag, boolean tocDisplay, boolean firstPageDisplay, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.cmsContentEntry = cmsContentEntry;
this.format = format;
this.hiddenmanuFlag = hiddenmanuFlag;
this.tocDisplay = tocDisplay;
this.firstPageDisplay = firstPageDisplay;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
public CoToc(CmsContentEntry cmsContentEntry, boolean format, boolean hiddenmanuFlag, boolean tocDisplay, boolean firstPageDisplay, BigDecimal createTs, BigDecimal lastmodifyTs, Set<TocBookmark> tocBookmarks, Set<CoActionmenu> coActionmenus) {
this.cmsContentEntry = cmsContentEntry;
this.format = format;
this.hiddenmanuFlag = hiddenmanuFlag;
this.tocDisplay = tocDisplay;
this.firstPageDisplay = firstPageDisplay;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.tocBookmarks = tocBookmarks;
this.coActionmenus = coActionmenus;
}
@GenericGenerator(name="generator", strategy="foreign", parameters=@Parameter(name="property", value="cmsContentEntry"))@Id @GeneratedValue(generator="generator")
@Column(name="ID", nullable=false, precision=20, scale=0)
public BigDecimal getId() {
return this.id;
}
public void setId(BigDecimal id) {
this.id = id;
}
@OneToOne(fetch=FetchType.LAZY)
public CmsContentEntry getCmsContentEntry() {
return this.cmsContentEntry;
}
public void setCmsContentEntry(CmsContentEntry cmsContentEntry) {
this.cmsContentEntry = cmsContentEntry;
}
@Column(name="FORMAT", nullable=false, precision=1, scale=0)
public boolean isFormat() {
return this.format;
}
public void setFormat(boolean format) {
this.format = format;
}
@Column(name="HIDDENMANU_FLAG", nullable=false, precision=1, scale=0)
public boolean isHiddenmanuFlag() {
return this.hiddenmanuFlag;
}
public void setHiddenmanuFlag(boolean hiddenmanuFlag) {
this.hiddenmanuFlag = hiddenmanuFlag;
}
@Column(name="TOC_DISPLAY", nullable=false, precision=1, scale=0)
public boolean isTocDisplay() {
return this.tocDisplay;
}
public void setTocDisplay(boolean tocDisplay) {
this.tocDisplay = tocDisplay;
}
@Column(name="FIRST_PAGE_DISPLAY", nullable=false, precision=1, scale=0)
public boolean isFirstPageDisplay() {
return this.firstPageDisplay;
}
public void setFirstPageDisplay(boolean firstPageDisplay) {
this.firstPageDisplay = firstPageDisplay;
}
@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;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="coToc")
public Set<TocBookmark> getTocBookmarks() {
return this.tocBookmarks;
}
public void setTocBookmarks(Set<TocBookmark> tocBookmarks) {
this.tocBookmarks = tocBookmarks;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="coToc")
public Set<CoActionmenu> getCoActionmenus() {
return this.coActionmenus;
}
public void setCoActionmenus(Set<CoActionmenu> coActionmenus) {
this.coActionmenus = coActionmenus;
}
}