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;
/**
* CoOrganizerpage generated by hbm2java
*/
@Entity
@Table(name="CO_ORGANIZERPAGE"
)
public class CoOrganizerpage implements java.io.Serializable {
private BigDecimal id;
private CmsContentEntry cmsContentEntry;
private BigDecimal createTs;
private BigDecimal lastmodifyTs;
private Set<CoHeaderfooter> coHeaderfooters = new HashSet<CoHeaderfooter>(0);
private Set<PstSettingBundle> pstSettingBundles = new HashSet<PstSettingBundle>(0);
private Set<CoTemplateRootOrganizer> coTemplateRootOrganizers = new HashSet<CoTemplateRootOrganizer>(0);
public CoOrganizerpage() {
}
public CoOrganizerpage(CmsContentEntry cmsContentEntry, BigDecimal createTs, BigDecimal lastmodifyTs) {
this.cmsContentEntry = cmsContentEntry;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
}
public CoOrganizerpage(CmsContentEntry cmsContentEntry, BigDecimal createTs, BigDecimal lastmodifyTs, Set<CoHeaderfooter> coHeaderfooters, Set<PstSettingBundle> pstSettingBundles, Set<CoTemplateRootOrganizer> coTemplateRootOrganizers) {
this.cmsContentEntry = cmsContentEntry;
this.createTs = createTs;
this.lastmodifyTs = lastmodifyTs;
this.coHeaderfooters = coHeaderfooters;
this.pstSettingBundles = pstSettingBundles;
this.coTemplateRootOrganizers = coTemplateRootOrganizers;
}
@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="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="coOrganizerpage")
public Set<CoHeaderfooter> getCoHeaderfooters() {
return this.coHeaderfooters;
}
public void setCoHeaderfooters(Set<CoHeaderfooter> coHeaderfooters) {
this.coHeaderfooters = coHeaderfooters;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="coOrganizerpage")
public Set<PstSettingBundle> getPstSettingBundles() {
return this.pstSettingBundles;
}
public void setPstSettingBundles(Set<PstSettingBundle> pstSettingBundles) {
this.pstSettingBundles = pstSettingBundles;
}
@OneToMany(fetch=FetchType.LAZY, mappedBy="coOrganizerpage")
public Set<CoTemplateRootOrganizer> getCoTemplateRootOrganizers() {
return this.coTemplateRootOrganizers;
}
public void setCoTemplateRootOrganizers(Set<CoTemplateRootOrganizer> coTemplateRootOrganizers) {
this.coTemplateRootOrganizers = coTemplateRootOrganizers;
}
}