View Javadoc
1   /*
2    * Copyright 2011 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/ecl1.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 javax.persistence.Column;
19  import javax.persistence.Entity;
20  import javax.persistence.Id;
21  import javax.persistence.Table;
22  
23  @Entity
24  @Table(name="KRTST_TWO_KEY_CHILD_T")
25  public class TwoKeyChildObject {
26  
27      @Id
28      @Column(name="FIN_COA_CD",length=2)
29      String chartOfAccountsCode;
30  
31      @Id
32      @Column(name="ORG_CD",length=4)
33      String organizationCode;
34  
35      public TwoKeyChildObject() {
36      }
37  
38      public TwoKeyChildObject(String chartOfAccountsCode, String organizationCode) {
39          super();
40          this.chartOfAccountsCode = chartOfAccountsCode;
41          this.organizationCode = organizationCode;
42      }
43  
44      public String getChartOfAccountsCode() {
45          return this.chartOfAccountsCode;
46      }
47  
48      public void setChartOfAccountsCode(String chartOfAccountsCode) {
49          this.chartOfAccountsCode = chartOfAccountsCode;
50      }
51  
52      public String getOrganizationCode() {
53          return this.organizationCode;
54      }
55  
56      public void setOrganizationCode(String organizationCode) {
57          this.organizationCode = organizationCode;
58      }
59  
60      @Override
61      public String toString() {
62          StringBuilder builder = new StringBuilder();
63          builder.append("TwoKeyChildObject [chartOfAccountsCode=").append(this.chartOfAccountsCode)
64                  .append(", organizationCode=").append(this.organizationCode).append("]");
65          return builder.toString();
66      }
67  
68  
69  }