package webctdbexport.db; // Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1 import java.math.BigDecimal; 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.Table; /** * CmMenuitem generated by hbm2java */ @Entity @Table(name="CM_MENUITEM" ) public class CmMenuitem implements java.io.Serializable { private BigDecimal id; private CmTool cmTool; private CmPalette cmPalette; private BigDecimal displayOrder; private boolean visibleFlag; private BigDecimal createTs; private BigDecimal lastmodifyTs; private String name; private String customLinkIcon; private String customLinkUrl; private String highlightid; public CmMenuitem() { } public CmMenuitem(BigDecimal id, CmTool cmTool, CmPalette cmPalette, BigDecimal displayOrder, boolean visibleFlag, BigDecimal createTs, BigDecimal lastmodifyTs) { this.id = id; this.cmTool = cmTool; this.cmPalette = cmPalette; this.displayOrder = displayOrder; this.visibleFlag = visibleFlag; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } public CmMenuitem(BigDecimal id, CmTool cmTool, CmPalette cmPalette, BigDecimal displayOrder, boolean visibleFlag, BigDecimal createTs, BigDecimal lastmodifyTs, String name, String customLinkIcon, String customLinkUrl, String highlightid) { this.id = id; this.cmTool = cmTool; this.cmPalette = cmPalette; this.displayOrder = displayOrder; this.visibleFlag = visibleFlag; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.name = name; this.customLinkIcon = customLinkIcon; this.customLinkUrl = customLinkUrl; this.highlightid = highlightid; } @Id @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="TOOL_ID", nullable=false) public CmTool getCmTool() { return this.cmTool; } public void setCmTool(CmTool cmTool) { this.cmTool = cmTool; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="PALETTE_ID", nullable=false) public CmPalette getCmPalette() { return this.cmPalette; } public void setCmPalette(CmPalette cmPalette) { this.cmPalette = cmPalette; } @Column(name="DISPLAY_ORDER", nullable=false, precision=20, scale=16) public BigDecimal getDisplayOrder() { return this.displayOrder; } public void setDisplayOrder(BigDecimal displayOrder) { this.displayOrder = displayOrder; } @Column(name="VISIBLE_FLAG", nullable=false, precision=1, scale=0) public boolean isVisibleFlag() { return this.visibleFlag; } public void setVisibleFlag(boolean visibleFlag) { this.visibleFlag = visibleFlag; } @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="NAME", length=512) public String getName() { return this.name; } public void setName(String name) { this.name = name; } @Column(name="CUSTOM_LINK_ICON", length=1024) public String getCustomLinkIcon() { return this.customLinkIcon; } public void setCustomLinkIcon(String customLinkIcon) { this.customLinkIcon = customLinkIcon; } @Column(name="CUSTOM_LINK_URL", length=1000) public String getCustomLinkUrl() { return this.customLinkUrl; } public void setCustomLinkUrl(String customLinkUrl) { this.customLinkUrl = customLinkUrl; } @Column(name="HIGHLIGHTID", length=512) public String getHighlightid() { return this.highlightid; } public void setHighlightid(String highlightid) { this.highlightid = highlightid; } }