View Javadoc
1   /**
2    * Copyright 2005-2014 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.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  }