package webctdbexport.db; // Generated 17-Jun-2011 11:38:57 by Hibernate Tools 3.4.0.CR1 import java.math.BigDecimal; import java.util.HashSet; import java.util.Set; 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.OneToMany; import javax.persistence.Table; /** * BackgroundJobs generated by hbm2java */ @Entity @Table(name="BACKGROUND_JOBS" ) public class BackgroundJobs implements java.io.Serializable { private BigDecimal id; private BackgroundJobTypes backgroundJobTypes; private BigDecimal submitterId; private BigDecimal learningContextId; private BigDecimal requestedStartTime; private BigDecimal actualStartTime; private BigDecimal actualEndTime; private int status; private int priority; private BigDecimal createTs; private BigDecimal lastmodifiedTs; private BigDecimal uniqueId; private String workerNode; private String arg1; private String arg2; private String arg3; private String arg4; private String arg5; private Character allowRetry; private Character deleteOnSuccess; private String resubmissionInstructionsKey; private Set<BackgroundJobArguments> backgroundJobArgumentses = new HashSet<BackgroundJobArguments>(0); public BackgroundJobs() { } public BackgroundJobs(BigDecimal id, BackgroundJobTypes backgroundJobTypes, BigDecimal submitterId, BigDecimal learningContextId, BigDecimal requestedStartTime, BigDecimal actualStartTime, BigDecimal actualEndTime, int status, int priority, BigDecimal createTs, BigDecimal lastmodifiedTs) { this.id = id; this.backgroundJobTypes = backgroundJobTypes; this.submitterId = submitterId; this.learningContextId = learningContextId; this.requestedStartTime = requestedStartTime; this.actualStartTime = actualStartTime; this.actualEndTime = actualEndTime; this.status = status; this.priority = priority; this.createTs = createTs; this.lastmodifiedTs = lastmodifiedTs; } public BackgroundJobs(BigDecimal id, BackgroundJobTypes backgroundJobTypes, BigDecimal submitterId, BigDecimal learningContextId, BigDecimal requestedStartTime, BigDecimal actualStartTime, BigDecimal actualEndTime, int status, int priority, BigDecimal createTs, BigDecimal lastmodifiedTs, BigDecimal uniqueId, String workerNode, String arg1, String arg2, String arg3, String arg4, String arg5, Character allowRetry, Character deleteOnSuccess, String resubmissionInstructionsKey, Set<BackgroundJobArguments> backgroundJobArgumentses) { this.id = id; this.backgroundJobTypes = backgroundJobTypes; this.submitterId = submitterId; this.learningContextId = learningContextId; this.requestedStartTime = requestedStartTime; this.actualStartTime = actualStartTime; this.actualEndTime = actualEndTime; this.status = status; this.priority = priority; this.createTs = createTs; this.lastmodifiedTs = lastmodifiedTs; this.uniqueId = uniqueId; this.workerNode = workerNode; this.arg1 = arg1; this.arg2 = arg2; this.arg3 = arg3; this.arg4 = arg4; this.arg5 = arg5; this.allowRetry = allowRetry; this.deleteOnSuccess = deleteOnSuccess; this.resubmissionInstructionsKey = resubmissionInstructionsKey; this.backgroundJobArgumentses = backgroundJobArgumentses; } @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="JOB_TYPE", nullable=false) public BackgroundJobTypes getBackgroundJobTypes() { return this.backgroundJobTypes; } public void setBackgroundJobTypes(BackgroundJobTypes backgroundJobTypes) { this.backgroundJobTypes = backgroundJobTypes; } @Column(name="SUBMITTER_ID", nullable=false, precision=20, scale=0) public BigDecimal getSubmitterId() { return this.submitterId; } public void setSubmitterId(BigDecimal submitterId) { this.submitterId = submitterId; } @Column(name="LEARNING_CONTEXT_ID", nullable=false, precision=20, scale=0) public BigDecimal getLearningContextId() { return this.learningContextId; } public void setLearningContextId(BigDecimal learningContextId) { this.learningContextId = learningContextId; } @Column(name="REQUESTED_START_TIME", nullable=false, precision=20, scale=0) public BigDecimal getRequestedStartTime() { return this.requestedStartTime; } public void setRequestedStartTime(BigDecimal requestedStartTime) { this.requestedStartTime = requestedStartTime; } @Column(name="ACTUAL_START_TIME", nullable=false, precision=20, scale=0) public BigDecimal getActualStartTime() { return this.actualStartTime; } public void setActualStartTime(BigDecimal actualStartTime) { this.actualStartTime = actualStartTime; } @Column(name="ACTUAL_END_TIME", nullable=false, precision=20, scale=0) public BigDecimal getActualEndTime() { return this.actualEndTime; } public void setActualEndTime(BigDecimal actualEndTime) { this.actualEndTime = actualEndTime; } @Column(name="STATUS", nullable=false, precision=5, scale=0) public int getStatus() { return this.status; } public void setStatus(int status) { this.status = status; } @Column(name="PRIORITY", nullable=false, precision=5, scale=0) public int getPriority() { return this.priority; } public void setPriority(int priority) { this.priority = priority; } @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="LASTMODIFIED_TS", nullable=false, precision=20, scale=0) public BigDecimal getLastmodifiedTs() { return this.lastmodifiedTs; } public void setLastmodifiedTs(BigDecimal lastmodifiedTs) { this.lastmodifiedTs = lastmodifiedTs; } @Column(name="UNIQUE_ID", precision=20, scale=0) public BigDecimal getUniqueId() { return this.uniqueId; } public void setUniqueId(BigDecimal uniqueId) { this.uniqueId = uniqueId; } @Column(name="WORKER_NODE", length=100) public String getWorkerNode() { return this.workerNode; } public void setWorkerNode(String workerNode) { this.workerNode = workerNode; } @Column(name="ARG1", length=300) public String getArg1() { return this.arg1; } public void setArg1(String arg1) { this.arg1 = arg1; } @Column(name="ARG2", length=300) public String getArg2() { return this.arg2; } public void setArg2(String arg2) { this.arg2 = arg2; } @Column(name="ARG3", length=300) public String getArg3() { return this.arg3; } public void setArg3(String arg3) { this.arg3 = arg3; } @Column(name="ARG4", length=300) public String getArg4() { return this.arg4; } public void setArg4(String arg4) { this.arg4 = arg4; } @Column(name="ARG5", length=300) public String getArg5() { return this.arg5; } public void setArg5(String arg5) { this.arg5 = arg5; } @Column(name="ALLOW_RETRY", length=1) public Character getAllowRetry() { return this.allowRetry; } public void setAllowRetry(Character allowRetry) { this.allowRetry = allowRetry; } @Column(name="DELETE_ON_SUCCESS", length=1) public Character getDeleteOnSuccess() { return this.deleteOnSuccess; } public void setDeleteOnSuccess(Character deleteOnSuccess) { this.deleteOnSuccess = deleteOnSuccess; } @Column(name="RESUBMISSION_INSTRUCTIONS_KEY", length=200) public String getResubmissionInstructionsKey() { return this.resubmissionInstructionsKey; } public void setResubmissionInstructionsKey(String resubmissionInstructionsKey) { this.resubmissionInstructionsKey = resubmissionInstructionsKey; } @OneToMany(fetch=FetchType.LAZY, mappedBy="backgroundJobs") public Set<BackgroundJobArguments> getBackgroundJobArgumentses() { return this.backgroundJobArgumentses; } public void setBackgroundJobArgumentses(Set<BackgroundJobArguments> backgroundJobArgumentses) { this.backgroundJobArgumentses = backgroundJobArgumentses; } }