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.kns.bo.PersistableBusinessObjectBase; |
32 | |
|
33 | |
@Entity |
34 | |
@Table(name="TRV_ACCT") |
35 | 0 | 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 | 0 | 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 | 0 | return name; |
67 | |
} |
68 | |
|
69 | |
public void setName(String name) { |
70 | 0 | this.name = name; |
71 | 0 | } |
72 | |
|
73 | |
public String getNumber() { |
74 | 0 | return number; |
75 | |
} |
76 | |
|
77 | |
public void setNumber(String number) { |
78 | 0 | this.number = number; |
79 | 0 | } |
80 | |
|
81 | |
public FiscalOfficer getFiscalOfficer() { |
82 | 0 | return fiscalOfficer; |
83 | |
} |
84 | |
|
85 | |
public void setFiscalOfficer(FiscalOfficer fiscalOfficer) { |
86 | 0 | this.fiscalOfficer = fiscalOfficer; |
87 | 0 | } |
88 | |
|
89 | |
public Long getFoId() { |
90 | 0 | return foId; |
91 | |
} |
92 | |
|
93 | |
public void setFoId(Long foId) { |
94 | 0 | this.foId = foId; |
95 | 0 | } |
96 | |
|
97 | |
public String getSubAccount() { |
98 | 0 | return this.subAccount; |
99 | |
} |
100 | |
|
101 | |
public void setSubAccount(String subAccount) { |
102 | 0 | this.subAccount = subAccount; |
103 | 0 | } |
104 | |
|
105 | |
public String getSubAccountName() { |
106 | 0 | return this.subAccountName; |
107 | |
} |
108 | |
|
109 | |
public void setSubAccountName(String subAccountName) { |
110 | 0 | this.subAccountName = subAccountName; |
111 | 0 | } |
112 | |
|
113 | |
public KualiPercent getSubsidizedPercent() { |
114 | 0 | return this.subsidizedPercent; |
115 | |
} |
116 | |
|
117 | |
public void setSubsidizedPercent(KualiPercent subsidizedPercent) { |
118 | 0 | this.subsidizedPercent = subsidizedPercent; |
119 | 0 | } |
120 | |
|
121 | |
public void setCreateDate(Date createDate) { |
122 | 0 | this.createDate = createDate; |
123 | 0 | } |
124 | |
|
125 | |
} |