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.Column; |
22 | |
import javax.persistence.Entity; |
23 | |
import javax.persistence.Id; |
24 | |
import javax.persistence.Table; |
25 | |
|
26 | |
|
27 | |
|
28 | |
@Entity |
29 | |
@Table(name="TRV_ACCT_TYPE") |
30 | 0 | public class TravelAccountType extends PersistableBusinessObjectBase { |
31 | |
|
32 | |
@Id |
33 | |
@Column(name="acct_type") |
34 | |
private String accountTypeCode; |
35 | |
@Column(name="acct_type_name") |
36 | |
private String name; |
37 | |
|
38 | |
|
39 | |
public String getAccountTypeCode() { |
40 | 0 | return accountTypeCode; |
41 | |
} |
42 | |
|
43 | |
|
44 | |
public void setAccountTypeCode(String accountTypeCode) { |
45 | 0 | this.accountTypeCode = accountTypeCode; |
46 | 0 | } |
47 | |
|
48 | |
|
49 | |
public String getName() { |
50 | 0 | return name; |
51 | |
} |
52 | |
|
53 | |
|
54 | |
public void setName(String name) { |
55 | 0 | this.name = name; |
56 | 0 | } |
57 | |
|
58 | |
public String getCodeAndDescription() { |
59 | 0 | return accountTypeCode + " - " + name; |
60 | |
} |
61 | |
} |