View Javadoc
1   package org.kuali.ole.batch.bo;
2   
3   import org.kuali.rice.krad.bo.DataObjectBase;
4   import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator;
5   
6   import javax.persistence.*;
7   
8   /**
9    * Created with IntelliJ IDEA.
10   * User: adityas
11   * Date: 7/26/13
12   * Time: 7:16 PM
13   * To change this template use File | Settings | File Templates.
14   */
15  @Entity
16  @Table(name = "OLE_BAT_INST_WRK_UNT_T")
17  public class OLEBatchProcessProfileInstanceWorkUnit extends DataObjectBase {
18  
19      @PortableSequenceGenerator(name = "OLE_BAT_INST_WRK_UNT_S")
20      @GeneratedValue(generator = "OLE_BAT_INST_WRK_UNT_S")
21      @Id
22      @Column(name = "BAT_INST_WRK_UNT_ID")
23      private String batchProcessInstanceWorkUnitId;
24  
25      @Column(name = "BAT_INST_WRK_UNT_NME")
26      private String batchProcessInstanceWorkUnit;
27  
28      @Column(name = "BAT_PRCS_PRF_ID")
29      private String batchProcessProfileId;
30  
31      @ManyToOne(targetEntity = OLEBatchProcessProfileBo.class, cascade = CascadeType.REFRESH,fetch= FetchType.EAGER)
32      @JoinColumn(name = "BAT_PRCS_PRF_ID", referencedColumnName = "BAT_PRCS_PRF_ID", insertable = false, updatable = false)
33      private OLEBatchProcessProfileBo oleBatchProcessProfileBo;
34  
35      public OLEBatchProcessProfileBo getOleBatchProcessProfileBo() {
36          return oleBatchProcessProfileBo;
37      }
38  
39      public void setOleBatchProcessProfileBo(OLEBatchProcessProfileBo oleBatchProcessProfileBo) {
40          this.oleBatchProcessProfileBo = oleBatchProcessProfileBo;
41      }
42  
43      public String getBatchProcessInstanceWorkUnitId() {
44          return batchProcessInstanceWorkUnitId;
45      }
46  
47      public void setBatchProcessInstanceWorkUnitId(String batchProcessInstanceWorkUnitId) {
48          this.batchProcessInstanceWorkUnitId = batchProcessInstanceWorkUnitId;
49      }
50  
51      public String getBatchProcessInstanceWorkUnit() {
52          return batchProcessInstanceWorkUnit;
53      }
54  
55      public void setBatchProcessInstanceWorkUnit(String batchProcessInstanceWorkUnit) {
56          this.batchProcessInstanceWorkUnit = batchProcessInstanceWorkUnit;
57      }
58  
59      public String getBatchProcessProfileId() {
60          return batchProcessProfileId;
61      }
62  
63      public void setBatchProcessProfileId(String batchProcessProfileId) {
64          this.batchProcessProfileId = batchProcessProfileId;
65      }
66  }