1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.kuali.rice.krad.test.document.bo;
18
19 import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
20
21 import javax.persistence.*;
22
23 @Entity
24 @Table(name="TRV_ACCT")
25 public class Account extends PersistableBusinessObjectBase {
26 @Id
27 @Column(name="acct_num")
28 private String number;
29 @Column(name="acct_name")
30 private String name;
31 @Column(name="acct_fo_id")
32 private Long amId;
33
34 @ManyToOne(fetch=FetchType.LAZY, cascade={CascadeType.REFRESH})
35 @JoinColumn(name="acct_fo_id",insertable=false,updatable=false)
36 private AccountManager accountManager;
37
38 public String getName() {
39 return name;
40 }
41
42 public void setName(String name) {
43 this.name = name;
44 }
45
46 public String getNumber() {
47 return number;
48 }
49
50 public void setNumber(String number) {
51 this.number = number;
52 }
53
54 public Long getAmId() {
55 return this.amId;
56 }
57
58 public void setAmId(Long id) {
59 this.amId = id;
60 }
61
62 public AccountManager getAccountManager() {
63 return this.accountManager;
64 }
65
66 public void setAccountManager(AccountManager accountManager) {
67 this.accountManager = accountManager;
68 }
69 }