001 /**
002 * Copyright 2005-2011 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package org.kuali.rice.krad.test.document.bo;
017
018 import org.kuali.rice.krad.bo.PersistableBusinessObjectExtensionBase;
019
020 import javax.persistence.*;
021
022 @Entity
023 @Table(name="TRV_ACCT_EXT")
024 public class AccountExtension extends PersistableBusinessObjectExtensionBase {
025
026 @Id
027 @Column(name="acct_num")
028 private String number;
029 @Column(name="acct_type")
030 private String accountTypeCode;
031
032 @ManyToOne(fetch=FetchType.LAZY)
033 @JoinColumn(name="acct_type",insertable=false,updatable=false)
034 private AccountType accountType;
035
036 public String getNumber() {
037 return number;
038 }
039
040 public void setNumber(String number) {
041 this.number = number;
042 }
043
044 public String getAccountTypeCode() {
045 return accountTypeCode;
046 }
047
048 public void setAccountTypeCode(String accountTypeCode) {
049 this.accountTypeCode = accountTypeCode;
050 }
051
052 public AccountType getAccountType() {
053 return accountType;
054 }
055
056 public void setAccountType(AccountType accountType) {
057 this.accountType = accountType;
058 }
059
060
061 }