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; /** * ColValue generated by hbm2java */ @Entity @Table(name="COL_VALUE" ) public class ColValue implements java.io.Serializable { private BigDecimal id; private ColMeta colMeta; private Person person; private SimpleFile simpleFile; private LearningContext learningContext; private BigDecimal numberValue; private String shortStringValue; private String longStringValue; private BigDecimal deletestatus; private BigDecimal createTs; private BigDecimal lastmodifyTs; public ColValue() { } public ColValue(BigDecimal id, ColMeta colMeta, Person person, BigDecimal deletestatus, BigDecimal createTs, BigDecimal lastmodifyTs) { this.id = id; this.colMeta = colMeta; this.person = person; this.deletestatus = deletestatus; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } public ColValue(BigDecimal id, ColMeta colMeta, Person person, SimpleFile simpleFile, LearningContext learningContext, BigDecimal numberValue, String shortStringValue, String longStringValue, BigDecimal deletestatus, BigDecimal createTs, BigDecimal lastmodifyTs) { this.id = id; this.colMeta = colMeta; this.person = person; this.simpleFile = simpleFile; this.learningContext = learningContext; this.numberValue = numberValue; this.shortStringValue = shortStringValue; this.longStringValue = longStringValue; this.deletestatus = deletestatus; 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="COL_META_ID", nullable=false) public ColMeta getColMeta() { return this.colMeta; } public void setColMeta(ColMeta colMeta) { this.colMeta = colMeta; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="PERSON_ID", nullable=false) public Person getPerson() { return this.person; } public void setPerson(Person person) { this.person = person; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="BLOB_VALUE") public SimpleFile getSimpleFile() { return this.simpleFile; } public void setSimpleFile(SimpleFile simpleFile) { this.simpleFile = simpleFile; } @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="LEARNING_CONTEXT_ID") public LearningContext getLearningContext() { return this.learningContext; } public void setLearningContext(LearningContext learningContext) { this.learningContext = learningContext; } @Column(name="NUMBER_VALUE", precision=30, scale=4) public BigDecimal getNumberValue() { return this.numberValue; } public void setNumberValue(BigDecimal numberValue) { this.numberValue = numberValue; } @Column(name="SHORT_STRING_VALUE", length=800) public String getShortStringValue() { return this.shortStringValue; } public void setShortStringValue(String shortStringValue) { this.shortStringValue = shortStringValue; } @Column(name="LONG_STRING_VALUE", length=4000) public String getLongStringValue() { return this.longStringValue; } public void setLongStringValue(String longStringValue) { this.longStringValue = longStringValue; } @Column(name="DELETESTATUS", nullable=false, precision=22, scale=0) public BigDecimal getDeletestatus() { return this.deletestatus; } public void setDeletestatus(BigDecimal deletestatus) { this.deletestatus = deletestatus; } @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; } }