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.PersistableBusinessObjectBase;
19
20 import javax.persistence.*;
21
22 @Entity
23 @Table(name="TRV_ACCT")
24 public class Account extends PersistableBusinessObjectBase {
25 @Id
26 @Column(name="acct_num")
27 private String number;
28 @Column(name="acct_name")
29 private String name;
30 @Column(name="acct_fo_id")
31 private Long amId;
32
33 @ManyToOne(fetch=FetchType.LAZY, cascade={CascadeType.REFRESH})
34 @JoinColumn(name="acct_fo_id",insertable=false,updatable=false)
35 private AccountManager accountManager;
36
37 public String getName() {
38 return name;
39 }
40
41 public void setName(String name) {
42 this.name = name;
43 }
44
45 public String getNumber() {
46 return number;
47 }
48
49 public void setNumber(String number) {
50 this.number = number;
51 }
52
53 public Long getAmId() {
54 return this.amId;
55 }
56
57 public void setAmId(Long id) {
58 this.amId = id;
59 }
60
61 public AccountManager getAccountManager() {
62 return this.accountManager;
63 }
64
65 public void setAccountManager(AccountManager accountManager) {
66 this.accountManager = accountManager;
67 }
68 }