View Javadoc

1   /**
2    * Copyright 2005-2013 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.PersistableBusinessObjectExtensionBase;
19  
20  import javax.persistence.*;
21  
22  @Entity
23  @Table(name="TRV_ACCT_EXT")
24  public class AccountExtension extends PersistableBusinessObjectExtensionBase {
25      
26  	@Id
27  	@Column(name="acct_num")
28      private String number;
29  	@Column(name="acct_type")
30      private String accountTypeCode;
31  	
32  	@ManyToOne(fetch=FetchType.LAZY)
33  	@JoinColumn(name="acct_type",insertable=false,updatable=false)
34      private AccountType accountType; 
35      
36      public String getNumber() {
37          return number;
38      }
39  
40      public void setNumber(String number) {
41          this.number = number;
42      }
43  
44      public String getAccountTypeCode() {
45          return accountTypeCode;
46      }
47  
48      public void setAccountTypeCode(String accountTypeCode) {
49          this.accountTypeCode = accountTypeCode;
50      }
51  
52  	public AccountType getAccountType() {
53  		return accountType;
54  	}
55  
56  	public void setAccountType(AccountType accountType) {
57  		this.accountType = accountType;
58  	}
59  
60   
61  }