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
9
10
11
12
13 @Entity
14 @Table(name = "OLE_PLTFRM_GEN_NTE_T")
15 public class OLEPlatformGeneralNote extends DataObjectBase {
16 @PortableSequenceGenerator(name = "OLE_PLTFRM_GEN_NTE_S")
17 @GeneratedValue(generator = "OLE_PLTFRM_GEN_NTE_S")
18 @Id
19 @Column(name = "PLTFRM_GEN_NTE_ID")
20 private String generalNoteId;
21
22 @Column(name = "PLTFRM_GEN_NTE_TXT")
23 private String generalNoteText;
24
25 @Column(name = "OLE_PLTFRM_ID")
26 private String olePlatformId;
27
28 @Column(name = "PLTFRM_DOC_NUM")
29 private String platfomDocumentNumber;
30
31 @ManyToOne(targetEntity = OLEPlatformRecordDocument.class, cascade = { CascadeType.ALL })
32 @JoinColumns({@JoinColumn(name = "OLE_PLTFRM_ID", referencedColumnName = "OLE_PLTFRM_ID", insertable = false, updatable = false),
33 @JoinColumn(name = "PLTFRM_DOC_NUM", referencedColumnName = "DOC_NUM", insertable = false, updatable = false)})
34 private OLEPlatformRecordDocument olePlatformRecordDocument;
35
36 public String getGeneralNoteId() {
37 return generalNoteId;
38 }
39
40 public void setGeneralNoteId(String generalNoteId) {
41 this.generalNoteId = generalNoteId;
42 }
43
44 public String getOlePlatformId() {
45 return olePlatformId;
46 }
47
48 public void setOlePlatformId(String olePlatformId) {
49 this.olePlatformId = olePlatformId;
50 }
51
52 public String getGeneralNoteText() {
53 return generalNoteText;
54 }
55
56 public void setGeneralNoteText(String generalNoteText) {
57 this.generalNoteText = generalNoteText;
58 }
59
60 public OLEPlatformRecordDocument getOlePlatformRecordDocument() {
61 return olePlatformRecordDocument;
62 }
63
64 public void setOlePlatformRecordDocument(OLEPlatformRecordDocument olePlatformRecordDocument) {
65 this.olePlatformRecordDocument = olePlatformRecordDocument;
66 }
67
68 public String getPlatfomDocumentNumber() {
69 return platfomDocumentNumber;
70 }
71
72 public void setPlatfomDocumentNumber(String platfomDocumentNumber) {
73 this.platfomDocumentNumber = platfomDocumentNumber;
74 }
75 }