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_UPDATABLE_CHILD_T") 025public class UpdatableChildObject { 026 027 @Id 028 @Column(name="PK_COL",length=10) 029 String childKey; 030 031 @Column(name="SOME_DATA_COL",length=40) 032 String someData; 033 034 public UpdatableChildObject() { 035 } 036 037 public UpdatableChildObject( String childKey, String someData ) { 038 this.childKey = childKey; 039 this.someData = someData; 040 } 041 042 public String getChildKey() { 043 return this.childKey; 044 } 045 046 public void setChildKey(String childKey) { 047 this.childKey = childKey; 048 } 049 050 public String getSomeData() { 051 return this.someData; 052 } 053 054 public void setSomeData(String someData) { 055 this.someData = someData; 056 } 057 058 @Override 059 public String toString() { 060 StringBuilder builder = new StringBuilder(); 061 builder.append("UpdatableChildObject ["); 062 if (this.childKey != null) { 063 builder.append("childKey=").append(this.childKey).append(", "); 064 } 065 if (this.someData != null) { 066 builder.append("someData=").append(this.someData); 067 } 068 builder.append("]"); 069 return builder.toString(); 070 } 071 072}