View Javadoc

1   /**
2    * Copyright 2005-2011 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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  }