blob: 5581ff365ec4b614981f9c79bfe8dba2a93f870a [file] [log] [blame]
<?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
-->
<object-persistence version="1.1.2"
xmlns="http://www.eclipse.org/eclipselink/xsds/persistence" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:eclipselink="http://www.eclipse.org/eclipselink/xsds/persistence">
<name>simpletable-dbws-or</name>
<class-mapping-descriptors>
<class-mapping-descriptor xsi:type="relational-class-mapping-descriptor">
<class>simpletable.Simpletable</class>
<alias>simpletableType</alias>
<primary-key>
<field table="SIMPLETABLE" name="ID" sql-typecode="3"
xsi:type="column" />
</primary-key>
<events xsi:type="event-policy" />
<querying xsi:type="query-policy">
<queries>
<query name="findByPrimaryKey" xsi:type="read-object-query">
<criteria operator="equal" xsi:type="relation-expression">
<left xsi:type="field-expression">
<field table="SIMPLETABLE" name="ID" sql-typecode="3"
xsi:type="column" />
<base xsi:type="base-expression" />
</left>
<right xsi:type="parameter-expression">
<parameter name="id" xsi:type="column" />
</right>
</criteria>
<arguments>
<argument name="id">
<type>java.lang.Object</type>
</argument>
</arguments>
<reference-class>simpletable.Simpletable</reference-class>
</query>
<query name="findAll" xsi:type="read-all-query">
<reference-class>simpletable.Simpletable</reference-class>
<container xsi:type="list-container-policy">
<collection-type>java.util.Vector</collection-type>
</container>
</query>
</queries>
</querying>
<attribute-mappings>
<attribute-mapping xsi:type="direct-mapping">
<attribute-name>id</attribute-name>
<field table="SIMPLETABLE" name="ID" sql-typecode="3"
xsi:type="column" />
<attribute-classification>java.math.BigInteger</attribute-classification>
</attribute-mapping>
<attribute-mapping xsi:type="direct-mapping">
<attribute-name>name</attribute-name>
<field table="SIMPLETABLE" name="NAME" sql-typecode="12"
xsi:type="column" />
<attribute-classification>java.lang.String</attribute-classification>
</attribute-mapping>
<attribute-mapping xsi:type="direct-mapping">
<attribute-name>since</attribute-name>
<field table="SIMPLETABLE" name="SINCE" sql-typecode="93"
xsi:type="column" />
<attribute-classification>java.sql.Date</attribute-classification>
</attribute-mapping>
</attribute-mappings>
<descriptor-type>independent</descriptor-type>
<caching>
<cache-type>weak-reference</cache-type>
<cache-size>-1</cache-size>
</caching>
<remote-caching>
<cache-type>weak-reference</cache-type>
<cache-size>-1</cache-size>
</remote-caching>
<instantiation />
<copying xsi:type="instantiation-copy-policy" />
<tables>
<table name="SIMPLETABLE" />
</tables>
</class-mapping-descriptor>
</class-mapping-descriptors>
<login xsi:type="database-login">
<platform-class>org.eclipse.persistence.platform.database.DatabasePlatform
</platform-class>
<connection-url></connection-url>
</login>
</object-persistence>