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