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.krad.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 | |
@Entity |
27 | |
@Table(name="TRV_ACCT_TYPE") |
28 | 0 | public class TravelAccountType extends PersistableBusinessObjectBase { |
29 | |
private static final long serialVersionUID = 413236253897119667L; |
30 | |
|
31 | |
@Id |
32 | |
@Column(name="acct_type") |
33 | |
private String accountTypeCode; |
34 | |
@Column(name="acct_type_name") |
35 | |
private String name; |
36 | |
|
37 | |
|
38 | |
public String getAccountTypeCode() { |
39 | 0 | return accountTypeCode; |
40 | |
} |
41 | |
|
42 | |
|
43 | |
public void setAccountTypeCode(String accountTypeCode) { |
44 | 0 | this.accountTypeCode = accountTypeCode; |
45 | 0 | } |
46 | |
|
47 | |
|
48 | |
public String getName() { |
49 | 0 | return name; |
50 | |
} |
51 | |
|
52 | |
|
53 | |
public void setName(String name) { |
54 | 0 | this.name = name; |
55 | 0 | } |
56 | |
|
57 | |
public String getCodeAndDescription() { |
58 | 0 | if (accountTypeCode != null) { |
59 | 0 | return accountTypeCode + " - " + name; |
60 | |
} |
61 | |
|
62 | 0 | return ""; |
63 | |
} |
64 | |
} |