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