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 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 return number;
40 }
41
42 public void setNumber(String number) {
43 this.number = number;
44 }
45
46 public String getAccountTypeCode() {
47 return accountTypeCode;
48 }
49
50 public void setAccountTypeCode(String accountTypeCode) {
51 this.accountTypeCode = accountTypeCode;
52 }
53
54 public TravelAccountType getAccountType() {
55 return accountType;
56 }
57
58 public void setAccountType(TravelAccountType accountType) {
59 this.accountType = accountType;
60 }
61
62
63 }