| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Copyright (c) 2018, 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 |
| |
| --> |
| |
| <entity-mappings version="1.0" xmlns="http://java.sun.com/xml/ns/persistence/orm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence/orm orm_1_0.xsd"> |
| <description>Merge of XML and Annotations Inherited Test Model Instance Document</description> |
| |
| <named-native-query name="findAnyMergeSQLBeerConsumer" result-class="org.eclipse.persistence.testing.models.jpa.xml.merge.inherited.BeerConsumer"> |
| <query>SELECT * FROM CMP3_MERGE_CONSUMER</query> |
| <hint name="cascadeLevel" value="1"/> |
| <hint name="eclipselink.jdbc.allow-native-sql-query" value="true"/> |
| </named-native-query> |
| |
| <named-native-query name="findAllMergeSQLCertifications" result-set-mapping="certificationResults"> |
| <query>SELECT * FROM CMP3_MERGE_CERTIFICATION</query> |
| <hint name="eclipselink.jdbc.allow-native-sql-query" value="true"/> |
| </named-native-query> |
| |
| <sql-result-set-mapping name="certificationResults"> |
| <entity-result entity-class="org.eclipse.persistence.testing.models.jpa.xml.merge.inherited.Certification"> |
| <field-result name="id" column="ID"/> |
| <field-result name="description" column="DESCRIPTION"/> |
| <field-result name="beerConsumer" column="CONSUMER_ID"/> |
| </entity-result> |
| </sql-result-set-mapping> |
| |
| <entity name="MergeAlpine" class="org.eclipse.persistence.testing.models.jpa.xml.merge.inherited.Alpine" access="FIELD"> |
| <!-- Entity is partially defined in annotations and this XML --> |
| <exclude-default-listeners/> |
| <exclude-superclass-listeners/> |
| <attributes> |
| <basic name="bestBeforeDate"> |
| <column name="BB_DATE"/> |
| <temporal>DATE</temporal> |
| </basic> |
| <transient name="localTransientString"/> |
| </attributes> |
| </entity> |
| |
| <entity name="MergeCanadian" class="org.eclipse.persistence.testing.models.jpa.xml.merge.inherited.Canadian" access="FIELD"> |
| <!-- Table name overides annotation --> |
| <table name="CMP3_MERGE_CANADIAN"/> |
| <attribute-override name="id"> |
| <column name="CANADIAN_ID"/> |
| </attribute-override> |
| <association-override name="beerConsumer"> |
| <join-column name="CONSUMER_ID"/> |
| </association-override> |
| <attributes> |
| <basic name="bornOnDate"> |
| <column name="BORN"/> |
| <temporal>DATE</temporal> |
| </basic> |
| </attributes> |
| </entity> |
| |
| </entity-mappings> |