View Javadoc
1   package org.kuali.ole.select.bo;
2   
3   import org.kuali.ole.select.document.OLEPlatformRecordDocument;
4   import org.kuali.rice.krad.bo.DataObjectBase;
5   import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator;
6   
7   import javax.persistence.*;
8   import java.sql.Timestamp;
9   import java.util.Date;
10  
11  /**
12   * Created by chenchulakshmig on 9/11/14.
13   * OLEPlatformAlert provides platform alert information through getter and setter.
14   */
15  @Entity
16  @Table(name = "OLE_PLTFRM_ALERT_T")
17  public class OLEPlatformAlert extends DataObjectBase {
18      @PortableSequenceGenerator(name = "OLE_PLTFRM_ALERT_S")
19      @GeneratedValue(generator = "OLE_PLTFRM_ALERT_S")
20      @Id
21      @Column(name = "PLTFRM_ALERT_ID")
22      private String platformAlertId;
23  
24      @Column(name = "OLE_PLTFRM_ID")
25      private String olePlatformId;
26  
27      @Column(name = "ALERT_RECIPIENT")
28      private String alertRecipient;
29  
30      @Column(name = "ALERT_NTE")
31      private String alertNote;
32  
33      @Column(name = "ALERT_DATE")
34      private Timestamp alertDate;
35  
36      @Column(name = "INITITATOR")
37      private String initiator;
38  
39      @Column(name = "STATUS")
40      private String status;
41  
42      @Column(name = "PLTFRM_DOC_NUM")
43      private String platfomDocumentNumber;
44  
45      @ManyToOne(targetEntity = OLEPlatformRecordDocument.class, cascade = { CascadeType.ALL })
46      @JoinColumns({@JoinColumn(name = "OLE_PLTFRM_ID", referencedColumnName = "OLE_PLTFRM_ID", insertable = false, updatable = false),
47              @JoinColumn(name = "PLTFRM_DOC_NUM", referencedColumnName = "DOC_NUM", insertable = false, updatable = false)})
48      private OLEPlatformRecordDocument olePlatformRecordDocument;
49  
50      public String getPlatformAlertId() {
51          return platformAlertId;
52      }
53  
54      public void setPlatformAlertId(String platformAlertId) {
55          this.platformAlertId = platformAlertId;
56      }
57  
58      public String getOlePlatformId() {
59          return olePlatformId;
60      }
61  
62      public void setOlePlatformId(String olePlatformId) {
63          this.olePlatformId = olePlatformId;
64      }
65  
66      public String getAlertRecipient() {
67          return alertRecipient;
68      }
69  
70      public void setAlertRecipient(String alertRecipient) {
71          this.alertRecipient = alertRecipient;
72      }
73  
74      public String getAlertNote() {
75          return alertNote;
76      }
77  
78      public void setAlertNote(String alertNote) {
79          this.alertNote = alertNote;
80      }
81  
82      public Timestamp getAlertDate() {
83          return alertDate;
84      }
85  
86      public void setAlertDate(Timestamp alertDate) {
87          this.alertDate = alertDate;
88      }
89  
90      public String getInitiator() {
91          return initiator;
92      }
93  
94      public void setInitiator(String initiator) {
95          this.initiator = initiator;
96      }
97  
98      public String getStatus() {
99          return status;
100     }
101 
102     public void setStatus(String status) {
103         this.status = status;
104     }
105 
106     public OLEPlatformRecordDocument getOlePlatformRecordDocument() {
107         return olePlatformRecordDocument;
108     }
109 
110     public void setOlePlatformRecordDocument(OLEPlatformRecordDocument olePlatformRecordDocument) {
111         this.olePlatformRecordDocument = olePlatformRecordDocument;
112     }
113 
114     public String getPlatfomDocumentNumber() {
115         return platfomDocumentNumber;
116     }
117 
118     public void setPlatfomDocumentNumber(String platfomDocumentNumber) {
119         this.platfomDocumentNumber = platfomDocumentNumber;
120     }
121 }