View Javadoc

1   /*
2    * Copyright 2006-2008 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  
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  }