| /* |
| * Copyright (c) 2020, 2021 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: |
| // Oracle - initial API and implementation |
| package org.eclipse.persistence.jpa.returninsert.model; |
| |
| import org.eclipse.persistence.annotations.ReturnInsert; |
| |
| import jakarta.persistence.*; |
| import org.eclipse.persistence.annotations.ReturnUpdate; |
| |
| import java.io.Serializable; |
| |
| /** |
| * The persistent class for the JPA22_RETURNINSERT_DETAIL database table. |
| * |
| */ |
| @Entity |
| @Table(name = "JPA22_RETURNINSERT_DETAIL") |
| @Cacheable(false) |
| @NamedQueries({ |
| @NamedQuery(name = "ReturnInsertDetail.findAll", query = "SELECT t FROM ReturnInsertDetail t"), |
| }) |
| public class ReturnInsertDetail extends ReturnInsertDetailParent implements Serializable { |
| |
| private static final long serialVersionUID = 1712864132706065027L; |
| |
| @EmbeddedId |
| private ReturnInsertDetailPK id; |
| |
| @ReturnInsert(returnOnly = true) |
| @Column(name = "COL1_VIRTUAL") |
| private long col1Virtual; |
| |
| @Embedded |
| private ReturnInsertDetailEmbedded returnInsertDetailEmbedded; |
| |
| @Column(name = "COL6") |
| private String col6; |
| |
| @ReturnUpdate |
| @Column(name = "COL6_VIRTUAL", insertable = false) |
| private String col6Virtual; |
| |
| @OneToOne(cascade = { CascadeType.MERGE, CascadeType.PERSIST }) |
| @JoinColumns({ |
| @JoinColumn(name = "ID_VIRTUAL", referencedColumnName = "ID_VIRTUAL", insertable = false, updatable = false), |
| @JoinColumn(name = "ID", referencedColumnName = "ID", insertable = false, updatable = false), |
| @JoinColumn(name = "COL1", referencedColumnName = "COL1", insertable = false, updatable = false) |
| }) |
| private ReturnInsertMaster returnInsertMaster; |
| |
| public ReturnInsertDetail() { |
| } |
| |
| public ReturnInsertDetailPK getId() { |
| return this.id; |
| } |
| |
| public void setId(ReturnInsertDetailPK id) { |
| this.id = id; |
| } |
| |
| public long getCol1Virtual() { |
| return col1Virtual; |
| } |
| |
| public void setCol1Virtual(long col1Virtual) { |
| this.col1Virtual = col1Virtual; |
| } |
| |
| public ReturnInsertDetailEmbedded getReturnInsertDetailEmbedded() { |
| return returnInsertDetailEmbedded; |
| } |
| |
| public void setReturnInsertDetailEmbedded(ReturnInsertDetailEmbedded returnInsertDetailEmbedded) { |
| this.returnInsertDetailEmbedded = returnInsertDetailEmbedded; |
| } |
| |
| public String getCol6() { |
| return col6; |
| } |
| |
| public void setCol6(String col6) { |
| this.col6 = col6; |
| } |
| |
| public String getCol6Virtual() { |
| return col6Virtual; |
| } |
| |
| public void setCol6Virtual(String col6Virtual) { |
| this.col6Virtual = col6Virtual; |
| } |
| |
| public ReturnInsertMaster getReturnInsertMaster() { |
| return returnInsertMaster; |
| } |
| |
| public void setReturnInsertMaster(ReturnInsertMaster returnInsertMaster) { |
| this.returnInsertMaster = returnInsertMaster; |
| } |
| } |