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.krad.bo.PersistableBusinessObjectExtensionBase; |
19 | |
|
20 | |
import javax.persistence.*; |
21 | |
|
22 | |
@Entity |
23 | |
@Table(name="TRV_ACCT_EXT") |
24 | 0 | public class TravelAccountExtension extends PersistableBusinessObjectExtensionBase { |
25 | |
private static final long serialVersionUID = -520222959801026298L; |
26 | |
|
27 | |
@Id |
28 | |
@Column(name="acct_num") |
29 | |
private String number; |
30 | |
|
31 | |
@Column(name="acct_type") |
32 | |
private String accountTypeCode; |
33 | |
|
34 | |
@OneToOne(fetch=FetchType.EAGER) |
35 | |
@JoinColumn(name="acct_type", insertable=false, updatable=false) |
36 | |
private TravelAccountType accountType; |
37 | |
|
38 | |
public String getNumber() { |
39 | 0 | return number; |
40 | |
} |
41 | |
|
42 | |
public void setNumber(String number) { |
43 | 0 | this.number = number; |
44 | 0 | } |
45 | |
|
46 | |
public String getAccountTypeCode() { |
47 | 0 | return accountTypeCode; |
48 | |
} |
49 | |
|
50 | |
public void setAccountTypeCode(String accountTypeCode) { |
51 | 0 | this.accountTypeCode = accountTypeCode; |
52 | 0 | } |
53 | |
|
54 | |
public TravelAccountType getAccountType() { |
55 | 0 | return accountType; |
56 | |
} |
57 | |
|
58 | |
public void setAccountType(TravelAccountType accountType) { |
59 | 0 | this.accountType = accountType; |
60 | 0 | } |
61 | |
|
62 | |
|
63 | |
} |