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