1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 }