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