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; /** * CoTemplate generated by hbm2java */ @Entity @Table(name="CO_TEMPLATE" ) public class CoTemplate implements java.io.Serializable { private BigDecimal id; private CmsContentEntry cmsContentEntry; private BigDecimal createTs; private BigDecimal lastmodifyTs; private String keywords; private Set<NotesItem> notesItems = new HashSet<NotesItem>(0); private Set<Rubric> rubrics = new HashSet<Rubric>(0); private Set<LocalContentDesktopConfig> localContentDesktopConfigs = new HashSet<LocalContentDesktopConfig>(0); private Set<CoLcAssignment> coLcAssignments = new HashSet<CoLcAssignment>(0); private Set<GenericGroup> genericGroups = new HashSet<GenericGroup>(0); private Set<LocalContentTool> localContentTools = new HashSet<LocalContentTool>(0); private Set<PstSettingBundle> pstSettingBundles = new HashSet<PstSettingBundle>(0); private Set<CoTemplateRootOrganizer> coTemplateRootOrganizers = new HashSet<CoTemplateRootOrganizer>(0); private Set<MlChangeQueue> mlChangeQueues = new HashSet<MlChangeQueue>(0); private Set<CoLcAssociation> coLcAssociations = new HashSet<CoLcAssociation>(0); private Set<AgnAssignment> agnAssignments = new HashSet<AgnAssignment>(0); private Set<DeliveryContextIconset> deliveryContextIconsets = new HashSet<DeliveryContextIconset>(0); private Set<PstReplacementIcon> pstReplacementIcons = new HashSet<PstReplacementIcon>(0); private Set<CoNewStatus> coNewStatuses = new HashSet<CoNewStatus>(0); private Set<MlDefaultCollection> mlDefaultCollections = new HashSet<MlDefaultCollection>(0); private Set<CoTemplateSetting> coTemplateSettings = new HashSet<CoTemplateSetting>(0); private Set<SectionBook> sectionBooks = new HashSet<SectionBook>(0); private Set<LocalContentEntry> localContentEntries = new HashSet<LocalContentEntry>(0); private Set<CoReadStatus> coReadStatuses = new HashSet<CoReadStatus>(0); private Set<CmCoursemenu> cmCoursemenus = new HashSet<CmCoursemenu>(0); private Set<SrUsage> srUsages = new HashSet<SrUsage>(0); private Set<DisTemplateSummary> disTemplateSummaries = new HashSet<DisTemplateSummary>(0); public CoTemplate() { } public CoTemplate(CmsContentEntry cmsContentEntry, BigDecimal createTs, BigDecimal lastmodifyTs) { this.cmsContentEntry = cmsContentEntry; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } public CoTemplate(CmsContentEntry cmsContentEntry, BigDecimal createTs, BigDecimal lastmodifyTs, String keywords, Set<NotesItem> notesItems, Set<Rubric> rubrics, Set<LocalContentDesktopConfig> localContentDesktopConfigs, Set<CoLcAssignment> coLcAssignments, Set<GenericGroup> genericGroups, Set<LocalContentTool> localContentTools, Set<PstSettingBundle> pstSettingBundles, Set<CoTemplateRootOrganizer> coTemplateRootOrganizers, Set<MlChangeQueue> mlChangeQueues, Set<CoLcAssociation> coLcAssociations, Set<AgnAssignment> agnAssignments, Set<DeliveryContextIconset> deliveryContextIconsets, Set<PstReplacementIcon> pstReplacementIcons, Set<CoNewStatus> coNewStatuses, Set<MlDefaultCollection> mlDefaultCollections, Set<CoTemplateSetting> coTemplateSettings, Set<SectionBook> sectionBooks, Set<LocalContentEntry> localContentEntries, Set<CoReadStatus> coReadStatuses, Set<CmCoursemenu> cmCoursemenus, Set<SrUsage> srUsages, Set<DisTemplateSummary> disTemplateSummaries) { this.cmsContentEntry = cmsContentEntry; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.keywords = keywords; this.notesItems = notesItems; this.rubrics = rubrics; this.localContentDesktopConfigs = localContentDesktopConfigs; this.coLcAssignments = coLcAssignments; this.genericGroups = genericGroups; this.localContentTools = localContentTools; this.pstSettingBundles = pstSettingBundles; this.coTemplateRootOrganizers = coTemplateRootOrganizers; this.mlChangeQueues = mlChangeQueues; this.coLcAssociations = coLcAssociations; this.agnAssignments = agnAssignments; this.deliveryContextIconsets = deliveryContextIconsets; this.pstReplacementIcons = pstReplacementIcons; this.coNewStatuses = coNewStatuses; this.mlDefaultCollections = mlDefaultCollections; this.coTemplateSettings = coTemplateSettings; this.sectionBooks = sectionBooks; this.localContentEntries = localContentEntries; this.coReadStatuses = coReadStatuses; this.cmCoursemenus = cmCoursemenus; this.srUsages = srUsages; this.disTemplateSummaries = disTemplateSummaries; } @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; } @Column(name="KEYWORDS", length=4000) public String getKeywords() { return this.keywords; } public void setKeywords(String keywords) { this.keywords = keywords; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<NotesItem> getNotesItems() { return this.notesItems; } public void setNotesItems(Set<NotesItem> notesItems) { this.notesItems = notesItems; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<Rubric> getRubrics() { return this.rubrics; } public void setRubrics(Set<Rubric> rubrics) { this.rubrics = rubrics; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<LocalContentDesktopConfig> getLocalContentDesktopConfigs() { return this.localContentDesktopConfigs; } public void setLocalContentDesktopConfigs(Set<LocalContentDesktopConfig> localContentDesktopConfigs) { this.localContentDesktopConfigs = localContentDesktopConfigs; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<CoLcAssignment> getCoLcAssignments() { return this.coLcAssignments; } public void setCoLcAssignments(Set<CoLcAssignment> coLcAssignments) { this.coLcAssignments = coLcAssignments; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<GenericGroup> getGenericGroups() { return this.genericGroups; } public void setGenericGroups(Set<GenericGroup> genericGroups) { this.genericGroups = genericGroups; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<LocalContentTool> getLocalContentTools() { return this.localContentTools; } public void setLocalContentTools(Set<LocalContentTool> localContentTools) { this.localContentTools = localContentTools; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<PstSettingBundle> getPstSettingBundles() { return this.pstSettingBundles; } public void setPstSettingBundles(Set<PstSettingBundle> pstSettingBundles) { this.pstSettingBundles = pstSettingBundles; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<CoTemplateRootOrganizer> getCoTemplateRootOrganizers() { return this.coTemplateRootOrganizers; } public void setCoTemplateRootOrganizers(Set<CoTemplateRootOrganizer> coTemplateRootOrganizers) { this.coTemplateRootOrganizers = coTemplateRootOrganizers; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<MlChangeQueue> getMlChangeQueues() { return this.mlChangeQueues; } public void setMlChangeQueues(Set<MlChangeQueue> mlChangeQueues) { this.mlChangeQueues = mlChangeQueues; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<CoLcAssociation> getCoLcAssociations() { return this.coLcAssociations; } public void setCoLcAssociations(Set<CoLcAssociation> coLcAssociations) { this.coLcAssociations = coLcAssociations; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<AgnAssignment> getAgnAssignments() { return this.agnAssignments; } public void setAgnAssignments(Set<AgnAssignment> agnAssignments) { this.agnAssignments = agnAssignments; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<DeliveryContextIconset> getDeliveryContextIconsets() { return this.deliveryContextIconsets; } public void setDeliveryContextIconsets(Set<DeliveryContextIconset> deliveryContextIconsets) { this.deliveryContextIconsets = deliveryContextIconsets; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<PstReplacementIcon> getPstReplacementIcons() { return this.pstReplacementIcons; } public void setPstReplacementIcons(Set<PstReplacementIcon> pstReplacementIcons) { this.pstReplacementIcons = pstReplacementIcons; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<CoNewStatus> getCoNewStatuses() { return this.coNewStatuses; } public void setCoNewStatuses(Set<CoNewStatus> coNewStatuses) { this.coNewStatuses = coNewStatuses; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<MlDefaultCollection> getMlDefaultCollections() { return this.mlDefaultCollections; } public void setMlDefaultCollections(Set<MlDefaultCollection> mlDefaultCollections) { this.mlDefaultCollections = mlDefaultCollections; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<CoTemplateSetting> getCoTemplateSettings() { return this.coTemplateSettings; } public void setCoTemplateSettings(Set<CoTemplateSetting> coTemplateSettings) { this.coTemplateSettings = coTemplateSettings; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<SectionBook> getSectionBooks() { return this.sectionBooks; } public void setSectionBooks(Set<SectionBook> sectionBooks) { this.sectionBooks = sectionBooks; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<LocalContentEntry> getLocalContentEntries() { return this.localContentEntries; } public void setLocalContentEntries(Set<LocalContentEntry> localContentEntries) { this.localContentEntries = localContentEntries; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<CoReadStatus> getCoReadStatuses() { return this.coReadStatuses; } public void setCoReadStatuses(Set<CoReadStatus> coReadStatuses) { this.coReadStatuses = coReadStatuses; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<CmCoursemenu> getCmCoursemenus() { return this.cmCoursemenus; } public void setCmCoursemenus(Set<CmCoursemenu> cmCoursemenus) { this.cmCoursemenus = cmCoursemenus; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<SrUsage> getSrUsages() { return this.srUsages; } public void setSrUsages(Set<SrUsage> srUsages) { this.srUsages = srUsages; } @OneToMany(fetch=FetchType.LAZY, mappedBy="coTemplate") public Set<DisTemplateSummary> getDisTemplateSummaries() { return this.disTemplateSummaries; } public void setDisTemplateSummaries(Set<DisTemplateSummary> disTemplateSummaries) { this.disTemplateSummaries = disTemplateSummaries; } }