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 edu.sampleu.travel.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 TravelAccountExtension extends PersistableBusinessObjectExtensionBase {
25      private static final long serialVersionUID = -520222959801026298L;
26  
27  	@Id
28  	@Column(name="acct_num")
29  	private String number;
30      
31      @Column(name="acct_type")
32  	private String accountTypeCode;
33      
34      @OneToOne(fetch=FetchType.EAGER)
35  	@JoinColumn(name="acct_type", insertable=false, updatable=false)
36  	private TravelAccountType accountType; 
37      
38      public String getNumber() {
39          return number;
40      }
41  
42      public void setNumber(String number) {
43          this.number = number;
44      }
45  
46      public String getAccountTypeCode() {
47          return accountTypeCode;
48      }
49  
50      public void setAccountTypeCode(String accountTypeCode) {
51          this.accountTypeCode = accountTypeCode;
52      }
53  
54  	public TravelAccountType getAccountType() {
55  		return accountType;
56  	}
57  
58  	public void setAccountType(TravelAccountType accountType) {
59  		this.accountType = accountType;
60  	}
61  
62   
63  }