1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
|
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
This file contains the schema information when an implementation
has application identity.
-->
<jdo xmlns="http://java.sun.com/xml/ns/jdo/jdo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/jdo/jdo
http://java.sun.com/xml/ns/jdo/jdo_2_2.xsd">
<package name="org.apache.jdo.tck.pc.company">
<class name="Address" embedded-only="true" requires-extent="false"/>
<class name="Company"
identity-type="application"
objectid-class="org.apache.jdo.tck.pc.company.Company$Oid">
<field name="companyid" primary-key="true"/>
<field name="address"
persistence-modifier="persistent"/>
<field name="departments" persistence-modifier="persistent">
<collection element-type="org.apache.jdo.tck.pc.company.Department"/>
</field>
</class>
<class name="DentalInsurance"
identity-type="application"
persistence-capable-superclass="org.apache.jdo.tck.pc.company.Insurance"/>
<class name="Department"
identity-type="application"
objectid-class="org.apache.jdo.tck.pc.company.Department$Oid">
<field name="deptid" primary-key="true"/>
<field name="employees" persistence-modifier="persistent">
<collection element-type="org.apache.jdo.tck.pc.company.Employee"/>
</field>
<field name="fundedEmps" persistence-modifier="persistent">
<collection element-type="org.apache.jdo.tck.pc.company.Employee"/>
</field>
</class>
<class name="Employee"
identity-type="application"
persistence-capable-superclass="org.apache.jdo.tck.pc.company.Person">
<field name="reviewedProjects" persistence-modifier="persistent">
<collection element-type="org.apache.jdo.tck.pc.company.Project"/>
</field>
<field name="projects" persistence-modifier="persistent">
<collection element-type="org.apache.jdo.tck.pc.company.Project"/>
</field>
<field name="team" persistence-modifier="persistent">
<collection element-type="org.apache.jdo.tck.pc.company.Employee"/>
</field>
<field name="hradvisees" persistence-modifier="persistent">
<collection element-type="org.apache.jdo.tck.pc.company.Employee"/>
</field>
</class>
<class name="FullTimeEmployee"
identity-type="application"
persistence-capable-superclass="org.apache.jdo.tck.pc.company.Employee"/>
<class name="Insurance"
identity-type="application"
objectid-class="org.apache.jdo.tck.pc.company.Insurance$Oid">
<field name="insid" primary-key="true"/>
</class>
<class name="MedicalInsurance"
identity-type="application"
persistence-capable-superclass="org.apache.jdo.tck.pc.company.Insurance"
/>
<class name="PartTimeEmployee"
identity-type="application"
persistence-capable-superclass="org.apache.jdo.tck.pc.company.Employee"/>
<class name="Person"
identity-type="application"
objectid-class="org.apache.jdo.tck.pc.company.Person$Oid">
<field name="personid" primary-key="true"/>
<field name="middlename" default-fetch-group="false"/>
<field name="address"
persistence-modifier="persistent"/>
<field name="phoneNumbers" persistence-modifier="persistent">
<map key-type="String" value-type="String"/>
</field>
<query name="validNotUnique">
SELECT firstname, lastname
INTO org.apache.jdo.tck.query.result.classes.FullName
FROM org.apache.jdo.tck.pc.company.Person
</query>
<query name="validUnique">
SELECT UNIQUE firstname, lastname
INTO org.apache.jdo.tck.query.result.classes.FullName
FROM org.apache.jdo.tck.pc.company.Person
WHERE firstname == 'emp1First'
</query>
<query name="invalidUnique">
SELECT UNIQUE firstname, lastname
INTO org.apache.jdo.tck.query.result.classes.FullName
FROM org.apache.jdo.tck.pc.company.Person
</query>
<query name="unmodifiable" unmodifiable="true">
SELECT firstname, lastname
FROM org.apache.jdo.tck.pc.company.Person
</query>
<query name="packageJDO">
SELECT FROM org.apache.jdo.tck.pc.company.Person
WHERE personid > 1
</query>
<query name="changeQuery">
SELECT FROM org.apache.jdo.tck.pc.company.Person
</query>
<query name="invalidQuery">
SeLeCt FrOm org.apache.jdo.tck.pc.company.Person
</query>
</class>
<class name="Project"
identity-type="application"
objectid-class="org.apache.jdo.tck.pc.company.Project$Oid">
<field name="projid" primary-key="true"/>
<field name="reviewers" persistence-modifier="persistent">
<collection element-type="org.apache.jdo.tck.pc.company.Employee"/>
</field>
<field name="members" persistence-modifier="persistent">
<collection element-type="org.apache.jdo.tck.pc.company.Employee"/>
</field>
</class>
</package>
</jdo>
|