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