| /* |
| * Copyright (c) 2012, 2020 Oracle and/or its affiliates. All rights reserved. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License v. 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0, |
| * or the Eclipse Distribution License v. 1.0 which is available at |
| * http://www.eclipse.org/org/documents/edl-v10.php. |
| * |
| * SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause |
| */ |
| |
| // Contributors: |
| // 02/08/2012-2.4 Guy Pelletier |
| // - 350487: JPA 2.1 Specification defined support for Stored Procedure Calls |
| // 01/23/2013-2.5 Guy Pelletier |
| // - 350487: JPA 2.1 Specification defined support for Stored Procedure Calls |
| package org.eclipse.persistence.testing.models.jpa22.advanced; |
| |
| import jakarta.persistence.DiscriminatorValue; |
| import jakarta.persistence.Entity; |
| import jakarta.persistence.FetchType; |
| import jakarta.persistence.JoinColumn; |
| import jakarta.persistence.ManyToOne; |
| import jakarta.persistence.Table; |
| |
| @Entity |
| @Table(name="JPA22_LPROJECT") |
| @DiscriminatorValue("L") |
| public class LargeProject extends Project { |
| private double m_budget; |
| |
| protected Employee executive; |
| |
| public LargeProject() { |
| super(); |
| } |
| |
| public LargeProject(String name) { |
| this(); |
| this.setName(name); |
| } |
| |
| public double getBudget() { |
| return m_budget; |
| } |
| |
| public void setBudget(double budget) { |
| this.m_budget = budget; |
| } |
| |
| /** |
| * @return the executive |
| */ |
| @ManyToOne(fetch=FetchType.LAZY) |
| @JoinColumn(name="EXEC_ID") |
| public Employee getExecutive() { |
| return executive; |
| } |
| |
| /** |
| * @param executive the executive to set |
| */ |
| public void setExecutive(Employee executive) { |
| this.executive = executive; |
| } |
| |
| } |