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; /** * CwbGraphiccommand generated by hbm2java */ @Entity @Table(name="CWB_GRAPHICCOMMAND" ) public class CwbGraphiccommand implements java.io.Serializable { private BigDecimal id; private CwbChatroom cwbChatroom; private String commandCode; private String command; private BigDecimal createTs; private BigDecimal lastmodifyTs; public CwbGraphiccommand() { } public CwbGraphiccommand(BigDecimal id, CwbChatroom cwbChatroom, String commandCode, String command, BigDecimal createTs, BigDecimal lastmodifyTs) { this.id = id; this.cwbChatroom = cwbChatroom; this.commandCode = commandCode; this.command = command; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } @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="ROOM_ID", nullable=false) public CwbChatroom getCwbChatroom() { return this.cwbChatroom; } public void setCwbChatroom(CwbChatroom cwbChatroom) { this.cwbChatroom = cwbChatroom; } @Column(name="COMMAND_CODE", nullable=false, length=30) public String getCommandCode() { return this.commandCode; } public void setCommandCode(String commandCode) { this.commandCode = commandCode; } @Column(name="COMMAND", nullable=false, length=1000) public String getCommand() { return this.command; } public void setCommand(String command) { this.command = command; } @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; } }