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.DataObjectBase;
19 import org.kuali.rice.krad.data.provider.annotation.ExtensionFor;
20
21 import javax.persistence.Column;
22 import javax.persistence.Entity;
23 import javax.persistence.FetchType;
24 import javax.persistence.Id;
25 import javax.persistence.JoinColumn;
26 import javax.persistence.ManyToOne;
27 import javax.persistence.OneToOne;
28 import javax.persistence.Table;
29
30 @Entity
31 @Table(name = "TRV_ACCT_EXT")
32 @ExtensionFor(SimpleAccount.class)
33 public class SimpleAccountExtension extends DataObjectBase {
34
35 private static final long serialVersionUID = -4862497845036765764L;
36
37 @Id
38 @OneToOne
39 @JoinColumn(name = "ACCT_NUM")
40 private SimpleAccount account;
41
42 @Column(name = "ACCT_TYPE")
43 private String accountTypeCode;
44
45 @ManyToOne(fetch = FetchType.LAZY)
46 @JoinColumn(name = "ACCT_TYPE", insertable=false, updatable=false)
47 private AccountType accountType;
48
49 public SimpleAccount getAccount() {
50 return account;
51 }
52
53 public void setAccount(SimpleAccount account) {
54 this.account = account;
55 }
56
57 public String getAccountTypeCode() {
58 return accountTypeCode;
59 }
60
61 public void setAccountTypeCode(String accountTypeCode) {
62 this.accountTypeCode = accountTypeCode;
63 }
64
65 public AccountType getAccountType() {
66 return accountType;
67 }
68
69 public void setAccountType(AccountType accountType) {
70 this.accountType = accountType;
71 }
72
73 }