1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.travel.approval.dataobject;
17
18 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
19 import javax.persistence.Entity;
20 import javax.persistence.Table;
21 import java.sql.Date;
22 import java.util.LinkedHashMap;
23 import org.kuali.rice.core.api.util.type.KualiDecimal;
24 import org.kuali.rice.core.framework.persistence.jpa.type.HibernateKualiDecimalFieldType;
25
26 @Entity
27 @Table(name="TRVL_ADV_T")
28 public class TravelAdvance extends PersistableBusinessObjectBase {
29 private Integer id;
30 private String documentNumber;
31 private KualiDecimal travelAdvanceRequested;
32 private Date dueDate;
33 private String paymentMethod;
34 private String advancePaymentReasonCode;
35 private Boolean travelAdvancePolicy = Boolean.FALSE;
36 private String additionalJustification;
37
38
39
40
41
42
43
44
45
46
47
48 public Integer getId() {
49 return id;
50 }
51
52
53
54
55
56
57
58
59
60
61 public void setId(Integer id) {
62 this.id = id;
63 }
64
65
66
67
68
69
70
71
72
73
74 public String getDocumentNumber() {
75 return documentNumber;
76 }
77
78
79
80
81
82
83
84
85
86
87 public void setDocumentNumber(String documentNumber) {
88 this.documentNumber = documentNumber;
89 }
90
91
92
93
94
95
96
97
98
99
100 public KualiDecimal getTravelAdvanceRequested() {
101 return travelAdvanceRequested;
102 }
103
104
105
106
107
108
109
110
111
112
113 public void setTravelAdvanceRequested(KualiDecimal travelAdvanceRequested) {
114 this.travelAdvanceRequested = travelAdvanceRequested;
115 }
116
117
118
119
120
121
122
123
124
125
126 public Date getDueDate() {
127 return dueDate;
128 }
129
130
131
132
133
134
135
136
137
138
139 public void setDueDate(Date dueDate) {
140 this.dueDate = dueDate;
141 }
142
143
144
145
146
147
148
149
150
151
152 public String getPaymentMethod() {
153 return paymentMethod;
154 }
155
156
157
158
159
160
161
162
163
164
165 public void setPaymentMethod(String paymentMethod) {
166 this.paymentMethod = paymentMethod;
167 }
168
169
170
171
172
173
174
175
176
177
178 public String getAdvancePaymentReasonCode() {
179 return advancePaymentReasonCode;
180 }
181
182
183
184
185
186
187
188
189
190
191 public void setAdvancePaymentReasonCode(String advancePaymentReasonCode) {
192 this.advancePaymentReasonCode = advancePaymentReasonCode;
193 }
194
195
196
197
198
199
200
201
202
203
204 public boolean getTravelAdvancePolicy() {
205 return travelAdvancePolicy;
206 }
207
208
209
210
211
212
213
214
215
216
217 public void setTravelAdvancePolicy(boolean travelAdvancePolicy) {
218 this.travelAdvancePolicy = travelAdvancePolicy;
219 }
220
221
222
223
224
225
226
227
228
229
230 public String getAdditionalJustification() {
231 return additionalJustification;
232 }
233
234
235
236
237
238
239
240
241
242
243 public void setAdditionalJustification(String additionalJustification) {
244 this.additionalJustification = additionalJustification;
245 }
246
247 protected LinkedHashMap toStringMapper() {
248 LinkedHashMap map = new LinkedHashMap();
249 map.put("id", this.id);
250 map.put("documentNumber", this.documentNumber);
251 map.put("travelAdvanceRequested", this.travelAdvanceRequested);
252 map.put("dueDate", this.dueDate);
253 map.put("paymentMethod", this.paymentMethod);
254 map.put("advancePaymentReasonCode", this.advancePaymentReasonCode);
255 map.put("travelAdvancePolicy", this.travelAdvancePolicy);
256 map.put("additionalJustification", this.additionalJustification);
257 return map;
258 }
259
260 }