1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.kuali.ole.pdp.businessobject;
21
22 import java.util.LinkedHashMap;
23 import javax.persistence.CascadeType;
24 import javax.persistence.Column;
25 import javax.persistence.Entity;
26 import javax.persistence.FetchType;
27 import javax.persistence.GeneratedValue;
28 import javax.persistence.Id;
29 import javax.persistence.JoinColumn;
30 import javax.persistence.ManyToOne;
31 import javax.persistence.Table;
32 import org.kuali.ole.pdp.businessobject.PaymentDetail;
33 import org.kuali.ole.sys.OLEPropertyConstants;
34 import org.kuali.ole.sys.businessobject.TimestampedBusinessObjectBase;
35 import org.kuali.rice.core.api.util.type.KualiInteger;
36 import org.kuali.rice.krad.data.jpa.PortableSequenceGenerator;
37
38 @Entity
39 @Table(name = "PDP_PMT_NTE_TXT_T")
40 public class PaymentNoteText extends TimestampedBusinessObjectBase {
41
42 @PortableSequenceGenerator(name = "PDP_PMT_NTE_ID_SEQ")
43 @GeneratedValue(generator = "PDP_PMT_NTE_ID_SEQ")
44 @Id
45 @Column(name = "PMT_NTE_ID")
46 private KualiInteger id;
47
48
49 @Column(name = "PMT_DTL_ID")
50 private Integer paymentDetailId;
51
52 @ManyToOne(targetEntity = PaymentDetail.class, fetch = FetchType.LAZY, cascade = { CascadeType.REFRESH })
53 @JoinColumn(name = "PMT_DTL_ID", referencedColumnName = "PMT_DTL_ID", insertable = false, updatable = false)
54 private PaymentDetail paymentDetail;
55
56
57 @Column(name = "CUST_NTE_LN_NBR")
58 private KualiInteger customerNoteLineNbr;
59
60
61 @Column(name = "CUST_NTE_TXT")
62 private String customerNoteText;
63
64
65 public PaymentNoteText() {
66 super();
67 }
68
69
70
71
72
73
74 public KualiInteger getId() {
75 return id;
76 }
77
78
79
80
81 public void setId(KualiInteger paymentNoteId) {
82 this.id = paymentNoteId;
83 }
84
85
86
87
88
89 public KualiInteger getCustomerNoteLineNbr() {
90 return customerNoteLineNbr;
91 }
92
93
94
95
96
97 public String getCustomerNoteText() {
98 return customerNoteText;
99 }
100
101
102
103
104
105 public PaymentDetail getPaymentDetail() {
106 return paymentDetail;
107 }
108
109
110
111
112 public void setCustomerNoteLineNbr(KualiInteger integer) {
113 customerNoteLineNbr = integer;
114 }
115
116
117
118
119 public void setCustomerNoteText(String string) {
120 customerNoteText = string;
121 }
122
123
124
125
126 public void setPaymentDetail(PaymentDetail pd) {
127 paymentDetail = pd;
128 }
129
130 public Integer getPaymentDetailId() {
131 return paymentDetailId;
132 }
133
134 public void setPaymentDetailId(Integer paymentDetailId) {
135 this.paymentDetailId = paymentDetailId;
136 }
137
138
139
140
141 protected LinkedHashMap toStringMapper() {
142 LinkedHashMap m = new LinkedHashMap();
143 m.put(OLEPropertyConstants.ID, this.id);
144 return m;
145 }
146 }