/* * Copyright 2014 - 2017 Blazebit. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.blazebit.persistence.testsuite.entity; import javax.persistence.Embedded; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.ManyToOne; /** * * @author Christian Beikov * @since 1.0 */ @Entity public class PolymorphicSub1 extends PolymorphicBase { private static final long serialVersionUID = 1L; private IntIdEntity relation1; private PolymorphicBase parent1; private NameObject embeddable1; private Integer sub1Value; public PolymorphicSub1() { } @ManyToOne(fetch = FetchType.LAZY) public IntIdEntity getRelation1() { return relation1; } public void setRelation1(IntIdEntity relation1) { this.relation1 = relation1; } @ManyToOne(fetch = FetchType.LAZY) public PolymorphicBase getParent1() { return parent1; } public void setParent1(PolymorphicBase parent1) { this.parent1 = parent1; } @Embedded public NameObject getEmbeddable1() { return embeddable1; } public void setEmbeddable1(NameObject embeddable1) { this.embeddable1 = embeddable1; } public Integer getSub1Value() { return sub1Value; } public void setSub1Value(Integer sub1Value) { this.sub1Value = sub1Value; } }