001/* 002 * Copyright 2011 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/ecl1.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 javax.persistence.Column; 019import javax.persistence.Entity; 020import javax.persistence.Id; 021import javax.persistence.Table; 022 023@Entity 024@Table(name="KRTST_TWO_KEY_CHILD_T") 025public class TwoKeyChildObject { 026 027 @Id 028 @Column(name="FIN_COA_CD",length=2) 029 String chartOfAccountsCode; 030 031 @Id 032 @Column(name="ORG_CD",length=4) 033 String organizationCode; 034 035 public TwoKeyChildObject() { 036 } 037 038 public TwoKeyChildObject(String chartOfAccountsCode, String organizationCode) { 039 super(); 040 this.chartOfAccountsCode = chartOfAccountsCode; 041 this.organizationCode = organizationCode; 042 } 043 044 public String getChartOfAccountsCode() { 045 return this.chartOfAccountsCode; 046 } 047 048 public void setChartOfAccountsCode(String chartOfAccountsCode) { 049 this.chartOfAccountsCode = chartOfAccountsCode; 050 } 051 052 public String getOrganizationCode() { 053 return this.organizationCode; 054 } 055 056 public void setOrganizationCode(String organizationCode) { 057 this.organizationCode = organizationCode; 058 } 059 060 @Override 061 public String toString() { 062 StringBuilder builder = new StringBuilder(); 063 builder.append("TwoKeyChildObject [chartOfAccountsCode=").append(this.chartOfAccountsCode) 064 .append(", organizationCode=").append(this.organizationCode).append("]"); 065 return builder.toString(); 066 } 067 068 069}