1 package org.hibernate.test.cascade; 3 4 9 public class Job { 10 private Long id; 11 private JobBatch batch; 12 private String processingInstructions; 13 private int status; 14 15 16 Job() {} 17 18 protected Job(JobBatch batch) { 19 this.batch = batch; 20 } 21 22 public Long getId() { 23 return id; 24 } 25 26 void setId(Long id) { 27 this.id = id; 28 } 29 30 public JobBatch getBatch() { 31 return batch; 32 } 33 34 void setBatch(JobBatch batch) { 35 this.batch = batch; 36 } 37 38 public String getProcessingInstructions() { 39 return processingInstructions; 40 } 41 42 public void setProcessingInstructions(String processingInstructions) { 43 this.processingInstructions = processingInstructions; 44 } 45 46 public int getStatus() { 47 return status; 48 } 49 50 public void setStatus(int status) { 51 this.status = status; 52 } 53 } 54 | Popular Tags |