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