View Javadoc
1   /**
2    * Copyright 2005-2014 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 org.kuali.rice.krad.test.document.bo;
17  
18  import org.kuali.rice.krad.bo.PersistableBusinessObjectBase;
19  import org.kuali.rice.krad.data.provider.annotation.Label;
20  
21  import javax.persistence.Column;
22  import javax.persistence.Entity;
23  import javax.persistence.Id;
24  import javax.persistence.Table;
25  
26  @Entity
27  @Table(name="TRV_SUB_ACCT")
28  public class SubAccount extends PersistableBusinessObjectBase {
29      private static final long serialVersionUID = 1L;
30  
31      @Id
32      @Column(name="sub_acct",length=10)
33      private String subAccount;
34  
35      @Column(name="sub_acct_name",length=40)
36      private String subAccountName;
37  
38      @Column(name="acct_num",length=10)
39      private String accountNumber;
40  
41      public SubAccount() {}
42  
43      public SubAccount(String subAccount, String subAccountName) {
44          super();
45          this.subAccount = subAccount;
46          this.subAccountName = subAccountName;
47      }
48  
49      public String getSubAccount() {
50          return this.subAccount;
51      }
52  
53      public void setSubAccount(String subAccount) {
54          this.subAccount = subAccount;
55      }
56  
57      public String getSubAccountName() {
58          return this.subAccountName;
59      }
60  
61      public void setSubAccountName(String subAccountName) {
62          this.subAccountName = subAccountName;
63      }
64  
65      public String getAccountNumber() {
66          return accountNumber;
67      }
68  
69      public void setAccountNumber(String accountNumber) {
70          this.accountNumber = accountNumber;
71      }
72  
73  }