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.GeneratedValue; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.OneToOne; import javax.persistence.Table; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Parameter; /** * CoOrganizerlink generated by hbm2java */ @Entity @Table(name="CO_ORGANIZERLINK" ) public class CoOrganizerlink implements java.io.Serializable { private BigDecimal id; private CmsContentEntry cmsContentEntry; private CmsLink cmsLink; private double position; private boolean useTargetPopupSetting; private BigDecimal createTs; private BigDecimal lastmodifyTs; private Boolean openinnewwindow; private Clob longDescription; private String linkname; public CoOrganizerlink() { } public CoOrganizerlink(CmsLink cmsLink, double position, boolean useTargetPopupSetting, BigDecimal createTs, BigDecimal lastmodifyTs) { this.cmsLink = cmsLink; this.position = position; this.useTargetPopupSetting = useTargetPopupSetting; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } public CoOrganizerlink(CmsContentEntry cmsContentEntry, CmsLink cmsLink, double position, boolean useTargetPopupSetting, BigDecimal createTs, BigDecimal lastmodifyTs, Boolean openinnewwindow, Clob longDescription, String linkname) { this.cmsContentEntry = cmsContentEntry; this.cmsLink = cmsLink; this.position = position; this.useTargetPopupSetting = useTargetPopupSetting; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.openinnewwindow = openinnewwindow; this.longDescription = longDescription; this.linkname = linkname; } @GenericGenerator(name="generator", strategy="foreign", parameters=@Parameter(name="property", value="cmsLink"))@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; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="ICONFILE_ID") public CmsContentEntry getCmsContentEntry() { return this.cmsContentEntry; } public void setCmsContentEntry(CmsContentEntry cmsContentEntry) { this.cmsContentEntry = cmsContentEntry; } @OneToOne(fetch=FetchType.LAZY) public CmsLink getCmsLink() { return this.cmsLink; } public void setCmsLink(CmsLink cmsLink) { this.cmsLink = cmsLink; } @Column(name="POSITION", nullable=false, precision=126, scale=0) public double getPosition() { return this.position; } public void setPosition(double position) { this.position = position; } @Column(name="USE_TARGET_POPUP_SETTING", nullable=false, precision=1, scale=0) public boolean isUseTargetPopupSetting() { return this.useTargetPopupSetting; } public void setUseTargetPopupSetting(boolean useTargetPopupSetting) { this.useTargetPopupSetting = useTargetPopupSetting; } @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="OPENINNEWWINDOW", precision=1, scale=0) public Boolean getOpeninnewwindow() { return this.openinnewwindow; } public void setOpeninnewwindow(Boolean openinnewwindow) { this.openinnewwindow = openinnewwindow; } @Column(name="LONG_DESCRIPTION") public Clob getLongDescription() { return this.longDescription; } public void setLongDescription(Clob longDescription) { this.longDescription = longDescription; } @Column(name="LINKNAME", length=1000) public String getLinkname() { return this.linkname; } public void setLinkname(String linkname) { this.linkname = linkname; } }