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.GeneratedValue; import javax.persistence.Id; import javax.persistence.OneToOne; import javax.persistence.Table; import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.Parameter; /** * LcOperation generated by hbm2java */ @Entity @Table(name="LC_OPERATION" ) public class LcOperation implements java.io.Serializable { private BigDecimal id; private LearningContext learningContext; private boolean operationHidden; private BigDecimal createTs; private BigDecimal lastmodifyTs; private String operationType; private BigDecimal backgroundJobsId; private String prototypeType; private BigDecimal prototypeId; private String prototypeName; private BigDecimal operationStart; private BigDecimal operationEnd; private Byte operationStatus; private String operationErrorCode; public LcOperation() { } public LcOperation(LearningContext learningContext, boolean operationHidden, BigDecimal createTs, BigDecimal lastmodifyTs) { this.learningContext = learningContext; this.operationHidden = operationHidden; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; } public LcOperation(LearningContext learningContext, boolean operationHidden, BigDecimal createTs, BigDecimal lastmodifyTs, String operationType, BigDecimal backgroundJobsId, String prototypeType, BigDecimal prototypeId, String prototypeName, BigDecimal operationStart, BigDecimal operationEnd, Byte operationStatus, String operationErrorCode) { this.learningContext = learningContext; this.operationHidden = operationHidden; this.createTs = createTs; this.lastmodifyTs = lastmodifyTs; this.operationType = operationType; this.backgroundJobsId = backgroundJobsId; this.prototypeType = prototypeType; this.prototypeId = prototypeId; this.prototypeName = prototypeName; this.operationStart = operationStart; this.operationEnd = operationEnd; this.operationStatus = operationStatus; this.operationErrorCode = operationErrorCode; } @GenericGenerator(name="generator", strategy="foreign", parameters=@Parameter(name="property", value="learningContext"))@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 LearningContext getLearningContext() { return this.learningContext; } public void setLearningContext(LearningContext learningContext) { this.learningContext = learningContext; } @Column(name="OPERATION_HIDDEN", nullable=false, precision=1, scale=0) public boolean isOperationHidden() { return this.operationHidden; } public void setOperationHidden(boolean operationHidden) { this.operationHidden = operationHidden; } @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="OPERATION_TYPE", length=1000) public String getOperationType() { return this.operationType; } public void setOperationType(String operationType) { this.operationType = operationType; } @Column(name="BACKGROUND_JOBS_ID", precision=20, scale=0) public BigDecimal getBackgroundJobsId() { return this.backgroundJobsId; } public void setBackgroundJobsId(BigDecimal backgroundJobsId) { this.backgroundJobsId = backgroundJobsId; } @Column(name="PROTOTYPE_TYPE", length=10) public String getPrototypeType() { return this.prototypeType; } public void setPrototypeType(String prototypeType) { this.prototypeType = prototypeType; } @Column(name="PROTOTYPE_ID", precision=20, scale=0) public BigDecimal getPrototypeId() { return this.prototypeId; } public void setPrototypeId(BigDecimal prototypeId) { this.prototypeId = prototypeId; } @Column(name="PROTOTYPE_NAME", length=1000) public String getPrototypeName() { return this.prototypeName; } public void setPrototypeName(String prototypeName) { this.prototypeName = prototypeName; } @Column(name="OPERATION_START", precision=20, scale=0) public BigDecimal getOperationStart() { return this.operationStart; } public void setOperationStart(BigDecimal operationStart) { this.operationStart = operationStart; } @Column(name="OPERATION_END", precision=20, scale=0) public BigDecimal getOperationEnd() { return this.operationEnd; } public void setOperationEnd(BigDecimal operationEnd) { this.operationEnd = operationEnd; } @Column(name="OPERATION_STATUS", precision=2, scale=0) public Byte getOperationStatus() { return this.operationStatus; } public void setOperationStatus(Byte operationStatus) { this.operationStatus = operationStatus; } @Column(name="OPERATION_ERROR_CODE", length=1000) public String getOperationErrorCode() { return this.operationErrorCode; } public void setOperationErrorCode(String operationErrorCode) { this.operationErrorCode = operationErrorCode; } }