View Javadoc
1   /**
2    * Copyright 2005-2015 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.data.jpa.testbo;
17  
18  import java.io.Serializable;
19  
20  import javax.persistence.Column;
21  import javax.persistence.Entity;
22  import javax.persistence.Id;
23  import javax.persistence.JoinColumn;
24  import javax.persistence.OneToOne;
25  import javax.persistence.Table;
26  
27  import org.kuali.rice.krad.data.provider.annotation.ExtensionFor;
28  
29  @Entity
30  @Table(name = "KRTST_TEST_TABLE_EXT_T")
31  @ExtensionFor(TestDataObject.class)
32  public class TestDataObjectExtension implements Serializable {
33  
34  	@Id
35      @OneToOne
36  	@JoinColumn(name = "PK_PROP")
37  	private TestDataObject primaryKeyProperty;
38  
39  	@Column(name = "STR_PROP", length = 40)
40  	private String extensionProperty;
41  
42      public TestDataObject getPrimaryKeyProperty() {
43          return primaryKeyProperty;
44      }
45  
46      public void setPrimaryKeyProperty(TestDataObject primaryKeyProperty) {
47          this.primaryKeyProperty = primaryKeyProperty;
48      }
49  
50      public String getExtensionProperty() {
51  		return extensionProperty;
52  	}
53  
54  	public void setExtensionProperty(String extensionProperty) {
55  		this.extensionProperty = extensionProperty;
56  	}
57  }