| <?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. |
| --> |
| <beans xmlns="http://www.springframework.org/schema/beans" |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| xsi:schemaLocation=" |
| http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> |
| |
| <description>Company instances for query testing</description> |
| |
| <bean id="root" class="java.util.ArrayList"> |
| <constructor-arg index="0"> |
| <list> |
| <ref bean="company1"/> |
| </list> |
| </constructor-arg> |
| </bean> |
| |
| <bean id="company1" factory-bean="companyFactory" factory-method="newCompany"> |
| <constructor-arg index="0" type="long"><value>1</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>Sun Microsystems, Inc.</value></constructor-arg> |
| <constructor-arg index="2" type="java.util.Date"><value>11/Apr/1952</value></constructor-arg> |
| <constructor-arg index="3" type="org.apache.jdo.tck.pc.company.IAddress"><ref bean="addr1"/></constructor-arg> |
| <property name="departments"> |
| <set> |
| <ref bean="dept1"/> |
| <ref bean="dept2"/> |
| </set> |
| </property> |
| </bean> |
| |
| <bean id="room1" factory-bean="companyFactory" factory-method="newMeetingRoom"> |
| <constructor-arg index="0" type="long"><value>1</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>Comfy Room</value></constructor-arg> |
| </bean> |
| <bean id="room2" factory-bean="companyFactory" factory-method="newMeetingRoom"> |
| <constructor-arg index="0" type="long"><value>2</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>Large Discussion Room</value></constructor-arg> |
| </bean> |
| <bean id="room3" factory-bean="companyFactory" factory-method="newMeetingRoom"> |
| <constructor-arg index="0" type="long"><value>3</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>Conference Room</value></constructor-arg> |
| </bean> |
| |
| <bean id="dept1" factory-bean="companyFactory" factory-method="newDepartment"> |
| <constructor-arg index="0" type="long"><value>1</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String" ><value>Development</value></constructor-arg> |
| <property name="company"><ref bean="company1"/></property> |
| <property name="employees"> |
| <set> |
| <ref bean="emp1"/> |
| <ref bean="emp2"/> |
| <ref bean="emp3"/> |
| <ref bean="emp4"/> |
| <ref bean="emp5"/> |
| <ref bean="emp6"/> |
| </set> |
| </property> |
| <property name="meetingRooms"> |
| <list> |
| <ref bean="room1"/> |
| <ref bean="room2"/> |
| </list> |
| </property> |
| </bean> |
| |
| <bean id="dept2" factory-bean="companyFactory" factory-method="newDepartment"> |
| <constructor-arg index="0" type="long"><value>2</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String" ><value>Human Resources</value></constructor-arg> |
| <property name="company"><ref bean="company1"/></property> |
| <property name="employees"> |
| <set> |
| <ref bean="emp7"/> |
| <ref bean="emp8"/> |
| <ref bean="emp9"/> |
| <ref bean="emp10"/> |
| </set> |
| </property> |
| <property name="meetingRooms"> |
| <list> |
| <ref bean="room3"/> |
| </list> |
| </property> |
| </bean> |
| |
| <bean id="emp1" factory-bean="companyFactory" factory-method="newFullTimeEmployee"> |
| <constructor-arg index="0" type="long"><value>1</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>emp1First</value></constructor-arg> |
| <constructor-arg index="2" type="java.lang.String"><value>emp1Last</value></constructor-arg> |
| <constructor-arg index="3" type="java.lang.String"><value>emp1Middle</value></constructor-arg> |
| <constructor-arg index="4" type="java.util.Date"><value>10/Jun/1970</value></constructor-arg> |
| <constructor-arg index="5" type="org.apache.jdo.tck.pc.company.IAddress"><ref bean="addr1"/></constructor-arg> |
| <constructor-arg index="6" type="java.util.Date"><value>1/Jan/1999</value></constructor-arg> |
| <constructor-arg index="7" type="double"><value>30000</value></constructor-arg> |
| <property name="weeklyhours"><value>40</value></property> |
| <property name="department"><ref bean="dept1"/></property> |
| <property name="manager"><null/></property> |
| <property name="team"> |
| <set> |
| <ref bean="emp2"/> |
| <ref bean="emp3"/> |
| <ref bean="emp10"/> |
| </set> |
| </property> |
| </bean> |
| <bean id="emp2" factory-bean="companyFactory" factory-method="newFullTimeEmployee"> |
| <constructor-arg index="0" type="long"><value>2</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>emp2First</value></constructor-arg> |
| <constructor-arg index="2" type="java.lang.String"><value>emp2Last</value></constructor-arg> |
| <constructor-arg index="3" type="java.lang.String"><value>emp2Middle</value></constructor-arg> |
| <constructor-arg index="4" type="java.util.Date"><value>22/Dec/1975</value></constructor-arg> |
| <constructor-arg index="5" type="org.apache.jdo.tck.pc.company.IAddress"><ref bean="addr2"/></constructor-arg> |
| <constructor-arg index="6" type="java.util.Date"><value>1/Jul/2003</value></constructor-arg> |
| <constructor-arg index="7" type="double"><value>20000</value></constructor-arg> |
| <property name="weeklyhours"><value>40</value></property> |
| <property name="department"><ref bean="dept1"/></property> |
| <property name="manager"><ref bean="emp1"/></property> |
| <property name="team"><set/></property> |
| </bean> |
| <bean id="emp3" factory-bean="companyFactory" factory-method="newPartTimeEmployee"> |
| <constructor-arg index="0" type="long"><value>3</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>emp3First</value></constructor-arg> |
| <constructor-arg index="2" type="java.lang.String"><value>emp3Last</value></constructor-arg> |
| <constructor-arg index="3" type="java.lang.String"><value>emp3Middle</value></constructor-arg> |
| <constructor-arg index="4" type="java.util.Date"><value>5/Sep/1972</value></constructor-arg> |
| <constructor-arg index="5" type="org.apache.jdo.tck.pc.company.IAddress"><ref bean="addr3"/></constructor-arg> |
| <constructor-arg index="6" type="java.util.Date"><value>15/Aug/2002</value></constructor-arg> |
| <constructor-arg index="7" type="double"><value>10000</value></constructor-arg> |
| <property name="weeklyhours"><value>25</value></property> |
| <property name="department"><ref bean="dept1"/></property> |
| <property name="manager"><ref bean="emp1"/></property> |
| <property name="team"><set/></property> |
| </bean> |
| <bean id="emp4" factory-bean="companyFactory" factory-method="newFullTimeEmployee"> |
| <constructor-arg index="0" type="long"><value>4</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>emp4First</value></constructor-arg> |
| <constructor-arg index="2" type="java.lang.String"><value>emp4Last</value></constructor-arg> |
| <constructor-arg index="3" type="java.lang.String"><value>emp4Middle</value></constructor-arg> |
| <constructor-arg index="4" type="java.util.Date"><value>6/Sep/1973</value></constructor-arg> |
| <constructor-arg index="5" type="org.apache.jdo.tck.pc.company.IAddress"><ref bean="addr2"/></constructor-arg> |
| <constructor-arg index="6" type="java.util.Date"><value>15/Apr/2001</value></constructor-arg> |
| <constructor-arg index="7" type="double"><value>25000</value></constructor-arg> |
| <property name="weeklyhours"><value>40</value></property> |
| <property name="department"><ref bean="dept1"/></property> |
| <property name="manager"><null/></property> |
| <property name="team"> |
| <set> |
| <ref bean="emp5"/> |
| <ref bean="emp6"/> |
| </set> |
| </property> |
| </bean> |
| <bean id="emp5" factory-bean="companyFactory" factory-method="newPartTimeEmployee"> |
| <constructor-arg index="0" type="long"><value>5</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>emp5First</value></constructor-arg> |
| <constructor-arg index="2" type="java.lang.String"><value>emp5Last</value></constructor-arg> |
| <constructor-arg index="3" type="java.lang.String"><value>emp5Middle</value></constructor-arg> |
| <constructor-arg index="4" type="java.util.Date"><value>5/Jul/1962</value></constructor-arg> |
| <constructor-arg index="5" type="org.apache.jdo.tck.pc.company.IAddress"><ref bean="addr2"/></constructor-arg> |
| <constructor-arg index="6" type="java.util.Date"><value>1/Nov/2002</value></constructor-arg> |
| <constructor-arg index="7" type="double"><value>18000</value></constructor-arg> |
| <property name="weeklyhours"><value>35</value></property> |
| <property name="department"><ref bean="dept1"/></property> |
| <property name="manager"><ref bean="emp4"/></property> |
| <property name="team"><set/></property> |
| </bean> |
| <bean id="emp6" factory-bean="companyFactory" factory-method="newFullTimeEmployee"> |
| <constructor-arg index="0" type="long"><value>6</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>emp6First</value></constructor-arg> |
| <constructor-arg index="2" type="java.lang.String"><value>emp6Last</value></constructor-arg> |
| <constructor-arg index="3" type="java.lang.String"><value>emp6Middle</value></constructor-arg> |
| <constructor-arg index="4" type="java.util.Date"><value>10/Jun/1969</value></constructor-arg> |
| <constructor-arg index="5" type="org.apache.jdo.tck.pc.company.IAddress"><ref bean="addr3"/></constructor-arg> |
| <constructor-arg index="6" type="java.util.Date"><value>1/Jun/2002</value></constructor-arg> |
| <constructor-arg index="7" type="double"><value>22000</value></constructor-arg> |
| <property name="weeklyhours"><value>40</value></property> |
| <property name="department"><ref bean="dept1"/></property> |
| <property name="manager"><ref bean="emp4"/></property> |
| <property name="team"><set/></property> |
| </bean> |
| <bean id="emp7" factory-bean="companyFactory" factory-method="newFullTimeEmployee"> |
| <constructor-arg index="0" type="long"><value>7</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>emp7First</value></constructor-arg> |
| <constructor-arg index="2" type="java.lang.String"><value>emp7Last</value></constructor-arg> |
| <constructor-arg index="3" type="java.lang.String"><value>emp7Middle</value></constructor-arg> |
| <constructor-arg index="4" type="java.util.Date"><value>10/Jun/1970</value></constructor-arg> |
| <constructor-arg index="5" type="org.apache.jdo.tck.pc.company.IAddress"><ref bean="addr1"/></constructor-arg> |
| <constructor-arg index="6" type="java.util.Date"><value>1/Jan/2000</value></constructor-arg> |
| <constructor-arg index="7" type="double"><value>40000</value></constructor-arg> |
| <property name="weeklyhours"><value>40</value></property> |
| <property name="department"><ref bean="dept2"/></property> |
| <property name="manager"><null/></property> |
| <property name="team"> |
| <set> |
| <ref bean="emp8"/> |
| <ref bean="emp9"/> |
| </set> |
| </property> |
| </bean> |
| <bean id="emp8" factory-bean="companyFactory" factory-method="newPartTimeEmployee"> |
| <constructor-arg index="0" type="long"><value>8</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>emp8First</value></constructor-arg> |
| <constructor-arg index="2" type="java.lang.String"><value>emp8Last</value></constructor-arg> |
| <constructor-arg index="3" type="java.lang.String"><value>emp8Middle</value></constructor-arg> |
| <constructor-arg index="4" type="java.util.Date"><value>22/Dec/1975</value></constructor-arg> |
| <constructor-arg index="5" type="org.apache.jdo.tck.pc.company.IAddress"><ref bean="addr2"/></constructor-arg> |
| <constructor-arg index="6" type="java.util.Date"><value>1/Aug/2003</value></constructor-arg> |
| <constructor-arg index="7" type="double"><value>10000</value></constructor-arg> |
| <property name="weeklyhours"><value>15</value></property> |
| <property name="department"><ref bean="dept2"/></property> |
| <property name="manager"><ref bean="emp7"/></property> |
| <property name="team"><set/></property> |
| </bean> |
| <bean id="emp9" factory-bean="companyFactory" factory-method="newPartTimeEmployee"> |
| <constructor-arg index="0" type="long"><value>9</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>emp9First</value></constructor-arg> |
| <constructor-arg index="2" type="java.lang.String"><value>emp9Last</value></constructor-arg> |
| <constructor-arg index="3" type="java.lang.String"><value>emp9Middle</value></constructor-arg> |
| <constructor-arg index="4" type="java.util.Date"><value>5/Sep/1972</value></constructor-arg> |
| <constructor-arg index="5" type="org.apache.jdo.tck.pc.company.IAddress"><ref bean="addr3"/></constructor-arg> |
| <constructor-arg index="6" type="java.util.Date"><value>1/May/2002</value></constructor-arg> |
| <constructor-arg index="7" type="double"><value>12000</value></constructor-arg> |
| <property name="weeklyhours"><value>20</value></property> |
| <property name="department"><ref bean="dept2"/></property> |
| <property name="manager"><ref bean="emp7"/></property> |
| <property name="team"><set/></property> |
| </bean> |
| <bean id="emp10" factory-bean="companyFactory" factory-method="newFullTimeEmployee"> |
| <constructor-arg index="0" type="long"><value>10</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>emp10First</value></constructor-arg> |
| <constructor-arg index="2" type="java.lang.String"><value>emp10Last</value></constructor-arg> |
| <constructor-arg index="3" type="java.lang.String"><value>emp10Middle</value></constructor-arg> |
| <constructor-arg index="4" type="java.util.Date"><value>5/Sep/1972</value></constructor-arg> |
| <constructor-arg index="5" type="org.apache.jdo.tck.pc.company.IAddress"><ref bean="addr3"/></constructor-arg> |
| <constructor-arg index="6" type="java.util.Date"><value>1/Oct/2002</value></constructor-arg> |
| <constructor-arg index="7" type="double"><value>24000</value></constructor-arg> |
| <property name="weeklyhours"><value>40</value></property> |
| <property name="department"><ref bean="dept2"/></property> |
| <property name="manager"><ref bean="emp1"/></property> |
| <property name="team"><set/></property> |
| </bean> |
| |
| <bean id="addr1" factory-bean="companyFactory" factory-method="newAddress"> |
| <constructor-arg index="0" type="long"><value>1</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>Unter den Linden 1</value></constructor-arg> |
| <constructor-arg index="2" type="java.lang.String"><value>Berlin</value></constructor-arg> |
| <constructor-arg index="3" type="java.lang.String"><value> </value></constructor-arg> |
| <constructor-arg index="4" type="java.lang.String"><value>12345</value></constructor-arg> |
| <constructor-arg index="5" type="java.lang.String"><value>Germany</value></constructor-arg> |
| </bean> |
| <bean id="addr2" factory-bean="companyFactory" factory-method="newAddress"> |
| <constructor-arg index="0" type="long"><value>2</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>Broadway 1</value></constructor-arg> |
| <constructor-arg index="2" type="java.lang.String"><value>New York</value></constructor-arg> |
| <constructor-arg index="3" type="java.lang.String"><value>NY</value></constructor-arg> |
| <constructor-arg index="4" type="java.lang.String"><value>10000</value></constructor-arg> |
| <constructor-arg index="5" type="java.lang.String"><value>USA</value></constructor-arg> |
| </bean> |
| <bean id="addr3" factory-bean="companyFactory" factory-method="newAddress"> |
| <constructor-arg index="0" type="long"><value>3</value></constructor-arg> |
| <constructor-arg index="1" type="java.lang.String"><value>Market St.</value></constructor-arg> |
| <constructor-arg index="2" type="java.lang.String"><value>San Francisco</value></constructor-arg> |
| <constructor-arg index="3" type="java.lang.String"><value>CA</value></constructor-arg> |
| <constructor-arg index="4" type="java.lang.String"><value>94102</value></constructor-arg> |
| <constructor-arg index="5" type="java.lang.String"><value>USA</value></constructor-arg> |
| </bean> |
| |
| </beans> |