blob: 9e82a9ace3e42be1ea8c1a008af1b9e6c5a808fd [file] [log] [blame] [edit]
<?xml version="1.0" encoding="UTF-8"?>
<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>