001/**
002 * Copyright 2005-2016 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 */
016package org.kuali.rice.krad.data.jpa.testbo;
017
018import java.io.Serializable;
019
020import javax.persistence.Column;
021import javax.persistence.Entity;
022import javax.persistence.Id;
023import javax.persistence.JoinColumn;
024import javax.persistence.OneToOne;
025import javax.persistence.Table;
026
027import org.kuali.rice.krad.data.provider.annotation.ExtensionFor;
028
029@Entity
030@Table(name = "KRTST_TEST_TABLE_EXT_T")
031@ExtensionFor(TestDataObject.class)
032public class TestDataObjectExtension implements Serializable {
033
034        @Id
035    @OneToOne
036        @JoinColumn(name = "PK_PROP")
037        private TestDataObject primaryKeyProperty;
038
039        @Column(name = "STR_PROP", length = 40)
040        private String extensionProperty;
041
042    public TestDataObject getPrimaryKeyProperty() {
043        return primaryKeyProperty;
044    }
045
046    public void setPrimaryKeyProperty(TestDataObject primaryKeyProperty) {
047        this.primaryKeyProperty = primaryKeyProperty;
048    }
049
050    public String getExtensionProperty() {
051                return extensionProperty;
052        }
053
054        public void setExtensionProperty(String extensionProperty) {
055                this.extensionProperty = extensionProperty;
056        }
057}