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