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 org.kuali.rice.kns.bo.PersistableBusinessObjectBase; |
20 | |
|
21 | |
import javax.persistence.*; |
22 | |
|
23 | |
@Entity |
24 | |
@Table(name="TRV_ACCT") |
25 | 0 | public class TravelAccount extends PersistableBusinessObjectBase { |
26 | |
|
27 | |
private static final long serialVersionUID = -7739303391609093875L; |
28 | |
|
29 | |
@Id |
30 | |
@Column(name="acct_num") |
31 | |
private String number; |
32 | |
|
33 | |
@Column(name="acct_name") |
34 | |
private String name; |
35 | |
|
36 | |
@Column(name="acct_fo_id") |
37 | |
private Long foId; |
38 | |
|
39 | |
@ManyToOne(fetch=FetchType.EAGER, cascade={CascadeType.PERSIST, CascadeType.MERGE}) |
40 | |
@JoinColumn(name="acct_fo_id", insertable=false, updatable=false) |
41 | |
private FiscalOfficer fiscalOfficer; |
42 | |
|
43 | |
public String getName() { |
44 | 0 | return name; |
45 | |
} |
46 | |
|
47 | |
public void setName(String name) { |
48 | 0 | this.name = name; |
49 | 0 | } |
50 | |
|
51 | |
public String getNumber() { |
52 | 0 | return number; |
53 | |
} |
54 | |
|
55 | |
public void setNumber(String number) { |
56 | 0 | this.number = number; |
57 | 0 | } |
58 | |
|
59 | |
public FiscalOfficer getFiscalOfficer() { |
60 | 0 | return fiscalOfficer; |
61 | |
} |
62 | |
|
63 | |
public void setFiscalOfficer(FiscalOfficer fiscalOfficer) { |
64 | 0 | this.fiscalOfficer = fiscalOfficer; |
65 | 0 | } |
66 | |
|
67 | |
public Long getFoId() { |
68 | 0 | return foId; |
69 | |
} |
70 | |
|
71 | |
public void setFoId(Long foId) { |
72 | 0 | this.foId = foId; |
73 | 0 | } |
74 | |
|
75 | |
} |