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.util.Date;
19
20 import javax.persistence.Column;
21 import javax.persistence.EmbeddedId;
22 import javax.persistence.Entity;
23 import javax.persistence.Table;
24 import javax.persistence.Transient;
25 import javax.persistence.Version;
26
27 import org.kuali.rice.core.api.util.type.KualiDecimal;
28
29 @Entity
30 @Table(name = "KRTST_TEST_TABLE_2_T")
31 public class TestDataObjectTwoPkFields {
32
33 @EmbeddedId
34 TestDataObjectTwoPkFieldsId id = new TestDataObjectTwoPkFieldsId();
35
36 @Column(
37 name = "STR_PROP",
38 length = 50)
39 String stringProperty;
40
41 @Version
42 @Column(
43 name = "VER_NBR",
44 length = 8,
45 precision = 0)
46 Long versionNumber;
47
48 @Transient
49 Date dateProperty;
50
51 @Transient
52 KualiDecimal currencyProperty;
53
54 public String getStringProperty() {
55 return stringProperty;
56 }
57
58 public void setStringProperty(String stringProperty) {
59 this.stringProperty = stringProperty;
60 }
61
62 public String getPrimaryKeyProperty() {
63 return id.getPrimaryKeyProperty();
64 }
65
66 public void setPrimaryKeyProperty(String primaryKeyProperty) {
67 id.setPrimaryKeyProperty(primaryKeyProperty);
68 }
69
70 public String getPrimaryKeyPropertyTwo() {
71 return id.getPrimaryKeyPropertyTwo();
72 }
73
74 public void setPrimaryKeyPropertyTwo(String primaryKeyPropertyTwo) {
75 id.setPrimaryKeyPropertyTwo(primaryKeyPropertyTwo);
76 }
77
78 public Date getDateProperty() {
79 return dateProperty;
80 }
81
82 public void setDateProperty(Date dateProperty) {
83 this.dateProperty = dateProperty;
84 }
85
86 public KualiDecimal getCurrencyProperty() {
87 return currencyProperty;
88 }
89
90 public void setCurrencyProperty(KualiDecimal currencyProperty) {
91 this.currencyProperty = currencyProperty;
92 }
93
94 }