001 /** 002 * Copyright 2005-2013 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/ecl2.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 */ 016 package org.kuali.rice.krad.data.jpa.testbo; 017 018 import java.util.Date; 019 020 import javax.persistence.Column; 021 import javax.persistence.EmbeddedId; 022 import javax.persistence.Entity; 023 import javax.persistence.Table; 024 import javax.persistence.Transient; 025 import javax.persistence.Version; 026 027 import org.kuali.rice.core.api.util.type.KualiDecimal; 028 029 @Entity 030 @Table(name = "KRTST_TEST_TABLE_2_T") 031 public class TestDataObjectTwoPkFields { 032 033 @EmbeddedId 034 TestDataObjectTwoPkFieldsId id = new TestDataObjectTwoPkFieldsId(); 035 036 @Column( 037 name = "STR_PROP", 038 length = 50) 039 String stringProperty; 040 041 @Version 042 @Column( 043 name = "VER_NBR", 044 length = 8, 045 precision = 0) 046 Long versionNumber; 047 048 @Transient 049 Date dateProperty; 050 051 @Transient 052 KualiDecimal currencyProperty; 053 054 public String getStringProperty() { 055 return stringProperty; 056 } 057 058 public void setStringProperty(String stringProperty) { 059 this.stringProperty = stringProperty; 060 } 061 062 public String getPrimaryKeyProperty() { 063 return id.getPrimaryKeyProperty(); 064 } 065 066 public void setPrimaryKeyProperty(String primaryKeyProperty) { 067 id.setPrimaryKeyProperty(primaryKeyProperty); 068 } 069 070 public String getPrimaryKeyPropertyTwo() { 071 return id.getPrimaryKeyPropertyTwo(); 072 } 073 074 public void setPrimaryKeyPropertyTwo(String primaryKeyPropertyTwo) { 075 id.setPrimaryKeyPropertyTwo(primaryKeyPropertyTwo); 076 } 077 078 public Date getDateProperty() { 079 return dateProperty; 080 } 081 082 public void setDateProperty(Date dateProperty) { 083 this.dateProperty = dateProperty; 084 } 085 086 public KualiDecimal getCurrencyProperty() { 087 return currencyProperty; 088 } 089 090 public void setCurrencyProperty(KualiDecimal currencyProperty) { 091 this.currencyProperty = currencyProperty; 092 } 093 094 }