1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package edu.sampleu.travel.bo;
17
18 import org.kuali.rice.core.api.util.type.KualiPercent;
19 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
20
21 import javax.persistence.CascadeType;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.FetchType;
25 import javax.persistence.Id;
26 import javax.persistence.JoinColumn;
27 import javax.persistence.ManyToOne;
28 import javax.persistence.Table;
29 import java.util.Date;
30
31 @Entity
32 @Table(name="TRV_ACCT")
33 public class TravelAccount extends PersistableBusinessObjectBase {
34
35 private static final long serialVersionUID = -7739303391609093875L;
36
37 @Id
38 @Column(name="acct_num")
39 private String number;
40
41 private String subAccount;
42
43 @Column(name="acct_name")
44 private String name;
45
46 private String subAccountName;
47
48 private KualiPercent subsidizedPercent;
49
50 private Date createDate;
51
52 public Date getCreateDate() {
53 return this.createDate;
54 }
55
56 @Column(name="acct_fo_id")
57 private String foId;
58
59 @ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.PERSIST, CascadeType.MERGE})
60 @JoinColumn(name="acct_fo_id", insertable=false, updatable=false)
61 private FiscalOfficer fiscalOfficer;
62
63 public String getName() {
64 return name;
65 }
66
67 public void setName(String name) {
68 this.name = name;
69 }
70
71 public String getNumber() {
72 return number;
73 }
74
75 public void setNumber(String number) {
76 this.number = number;
77 }
78
79 public FiscalOfficer getFiscalOfficer() {
80 return fiscalOfficer;
81 }
82
83 public void setFiscalOfficer(FiscalOfficer fiscalOfficer) {
84 this.fiscalOfficer = fiscalOfficer;
85 }
86
87 public String getFoId() {
88 return foId;
89 }
90
91 public void setFoId(String foId) {
92 this.foId = foId;
93 }
94
95 public String getSubAccount() {
96 return this.subAccount;
97 }
98
99 public void setSubAccount(String subAccount) {
100 this.subAccount = subAccount;
101 }
102
103 public String getSubAccountName() {
104 return this.subAccountName;
105 }
106
107 public void setSubAccountName(String subAccountName) {
108 this.subAccountName = subAccountName;
109 }
110
111 public KualiPercent getSubsidizedPercent() {
112 return this.subsidizedPercent;
113 }
114
115 public void setSubsidizedPercent(KualiPercent subsidizedPercent) {
116 this.subsidizedPercent = subsidizedPercent;
117 }
118
119 public void setCreateDate(Date createDate) {
120 this.createDate = createDate;
121 }
122
123 }