1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.kuali.rice.krad.test.document.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 AccountExtension extends PersistableBusinessObjectExtensionBase {
25
26 @Id
27 @Column(name="acct_num")
28 private String number;
29 @Column(name="acct_type")
30 private String accountTypeCode;
31
32 @ManyToOne(fetch=FetchType.LAZY)
33 @JoinColumn(name="acct_type",insertable=false,updatable=false)
34 private AccountType accountType;
35
36 public String getNumber() {
37 return number;
38 }
39
40 public void setNumber(String number) {
41 this.number = number;
42 }
43
44 public String getAccountTypeCode() {
45 return accountTypeCode;
46 }
47
48 public void setAccountTypeCode(String accountTypeCode) {
49 this.accountTypeCode = accountTypeCode;
50 }
51
52 public AccountType getAccountType() {
53 return accountType;
54 }
55
56 public void setAccountType(AccountType accountType) {
57 this.accountType = accountType;
58 }
59
60
61 }