001/** 002 * Copyright 2005-2014 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 */ 016package org.kuali.rice.krad.test.document.bo; 017 018import org.kuali.rice.krad.bo.PersistableBusinessObjectBase; 019import org.kuali.rice.krad.data.provider.annotation.Label; 020 021import javax.persistence.Column; 022import javax.persistence.Entity; 023import javax.persistence.Id; 024import javax.persistence.Table; 025 026@Entity 027@Table(name="TRV_SUB_ACCT") 028public class SubAccount extends PersistableBusinessObjectBase { 029 private static final long serialVersionUID = 1L; 030 031 @Id 032 @Column(name="sub_acct",length=10) 033 private String subAccount; 034 035 @Column(name="sub_acct_name",length=40) 036 private String subAccountName; 037 038 @Column(name="acct_num",length=10) 039 private String accountNumber; 040 041 public SubAccount() {} 042 043 public SubAccount(String subAccount, String subAccountName) { 044 super(); 045 this.subAccount = subAccount; 046 this.subAccountName = subAccountName; 047 } 048 049 public String getSubAccount() { 050 return this.subAccount; 051 } 052 053 public void setSubAccount(String subAccount) { 054 this.subAccount = subAccount; 055 } 056 057 public String getSubAccountName() { 058 return this.subAccountName; 059 } 060 061 public void setSubAccountName(String subAccountName) { 062 this.subAccountName = subAccountName; 063 } 064 065 public String getAccountNumber() { 066 return accountNumber; 067 } 068 069 public void setAccountNumber(String accountNumber) { 070 this.accountNumber = accountNumber; 071 } 072 073}