openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mprud...@apache.org
Subject svn commit: r505188 - in /incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org: ./ apache/ apache/openjpa/ apache/openjpa/persistence/ apache/openjpa/persistence/models/ apache/openjpa/persistence/models/company/
Date Fri, 09 Feb 2007 05:37:19 GMT
Author: mprudhom
Date: Thu Feb  8 21:37:11 2007
New Revision: 505188

URL: http://svn.apache.org/viewvc?view=rev&rev=505188
Log:
Added resource necessary for loading company model tests

Added:
    incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/
    incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/
    incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/
    incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/
    incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/models/
    incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/models/company/
    incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/models/company/companies.xml
  (with props)

Added: incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/models/company/companies.xml
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/models/company/companies.xml?view=auto&rev=505188
==============================================================================
--- incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/models/company/companies.xml
(added)
+++ incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/models/company/companies.xml
Thu Feb  8 21:37:11 2007
@@ -0,0 +1,321 @@
+<?xml version="1.0" encoding="UTF-8"?> 
+<!DOCTYPE java [
+    <!ENTITY package "org.apache.openjpa.persistence.models.company">
+    <!ENTITY factory "org.apache.openjpa.persistence.models.company.CompanyModelTest">
+]>
+<java version="1.5.0_06" class="java.beans.XMLDecoder"> 
+ <object class="java.util.ArrayList"> 
+
+  <void method="add"> 
+   <object id="IAddress-1" method="create" class="&factory;">
+    <class>&package;.IAddress</class>
+    <void property="streetAddress"><string>11 Oak Lane</string></void>

+    <void property="city"><string>San Francisco</string></void> 
+    <void property="state"><string>CA</string></void> 
+    <void property="postalCode"><string>11111</string></void> 
+    <void property="phoneNumber"><string>111-111-1111</string></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IAddress-2" method="create" class="&factory;">
+    <class>&package;.IAddress</class>
+    <void property="streetAddress"><string>22 Pine Street</string></void>

+    <void property="city"><string>New York</string></void> 
+    <void property="state"><string>NY</string></void> 
+    <void property="postalCode"><string>22222</string></void> 
+    <void property="phoneNumber"><string>222-222-2222</string></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IAddress-3" method="create" class="&factory;">
+    <class>&package;.IAddress</class>
+    <void property="streetAddress"><string>33 Cedar Blvd</string></void>

+    <void property="city"><string>Bangor</string></void> 
+    <void property="state"><string>Maine</string></void> 
+    <void property="postalCode"><string>33333</string></void> 
+    <void property="phoneNumber"><string>333-333-3333</string></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IAddress-4" method="create" class="&factory;">
+    <class>&package;.IAddress</class>
+    <void property="streetAddress"><string>44 Fir Drive</string></void>

+    <void property="city"><string>Washington</string></void> 
+    <void property="state"><string>DC</string></void> 
+    <void property="postalCode"><string>44444</string></void> 
+    <void property="phoneNumber"><string>444-444-4444</string></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IAddress-5" method="create" class="&factory;">
+    <class>&package;.IAddress</class>
+    <void property="streetAddress"><string>55 Birch Circle</string></void>

+    <void property="city"><string>Portland</string></void> 
+    <void property="state"><string>OR</string></void> 
+    <void property="postalCode"><string>55555</string></void> 
+    <void property="phoneNumber"><string>555-555-5555</string></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IAddress-6" method="create" class="&factory;">
+    <class>&package;.IAddress</class>
+    <void property="streetAddress"><string>66 Palm Lane</string></void>

+    <void property="city"><string>Boston</string></void> 
+    <void property="state"><string>MA</string></void> 
+    <void property="postalCode"><string>66666</string></void> 
+    <void property="phoneNumber"><string>666-666-6666</string></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IAddress-7" method="create" class="&factory;">
+    <class>&package;.IAddress</class>
+    <void property="streetAddress"><string>77 Redwood Drive</string></void>

+    <void property="city"><string>Austin</string></void> 
+    <void property="state"><string>TX</string></void> 
+    <void property="postalCode"><string>77777</string></void> 
+    <void property="phoneNumber"><string>777-777-7777</string></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IAddress-8" method="create" class="&factory;">
+    <class>&package;.IAddress</class>
+    <void property="streetAddress"><string>88 Mahogany Route</string></void>

+    <void property="city"><string>Chicago</string></void> 
+    <void property="state"><string>IL</string></void> 
+    <void property="postalCode"><string>88888</string></void> 
+    <void property="phoneNumber"><string>888-888-8888</string></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IAddress-9" method="create" class="&factory;">
+    <class>&package;.IAddress</class>
+    <void property="streetAddress"><string>99 Teak Road</string></void>

+    <void property="city"><string>Los Angeles</string></void> 
+    <void property="state"><string>CA</string></void> 
+    <void property="postalCode"><string>99999</string></void> 
+    <void property="phoneNumber"><string>999-999-9999</string></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IAddress-10" method="create" class="&factory;">
+    <class>&package;.IAddress</class>
+    <void property="streetAddress"><string>1010 Linden Street</string></void>

+    <void property="city"><string>San Diego</string></void> 
+    <void property="state"><string>CA</string></void> 
+    <void property="postalCode"><string>10101</string></void> 
+    <void property="phoneNumber"><string>101-010-1010</string></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IAddress-11" method="create" class="&factory;">
+    <class>&package;.IAddress</class>
+    <void property="streetAddress"><string>1111 Eucalyptus Blvd</string></void>

+    <void property="city"><string>Bar Harbor</string></void> 
+    <void property="state"><string>ME</string></void> 
+    <void property="postalCode"><string>11111</string></void> 
+    <void property="phoneNumber"><string>111-111-1111</string></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="ICompany-1" method="create" class="&factory;">
+    <class>&package;.ICompany</class>
+    <void property="name"><string>ACME Software</string></void> 
+    <void property="address"><object idref="IAddress-1"/></void> 
+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="ICompany-2" method="create" class="&factory;">
+    <class>&package;.ICompany</class>
+    <void property="name"><string>No Name Systems</string></void>

+    <void property="address"><object idref="IAddress-2"/></void> 
+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IFullTimeEmployee-1" method="create" class="&factory;">
+    <class>&package;.IFullTimeEmployee</class>
+    <void property="firstName"><string>Bob</string></void> 
+    <void property="lastName"><string>Baldrich</string></void> 
+    <void property="homeAddress"><object idref="IAddress-3"/></void> 
+    <void property="salary"><float>150000.00</float></void> 
+    <void property="title"><string>President</string></void> 
+    <void property="hireDate"><object class="java.util.Date"><long>0</long></object></void>

+    <void property="company"><object idref="ICompany-1"/></void> 
+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IFullTimeEmployee-2" method="create" class="&factory;">
+    <class>&package;.IFullTimeEmployee</class>
+    <void property="firstName"><string>Sara</string></void> 
+    <void property="lastName"><string>Saunders</string></void> 
+    <void property="homeAddress"><object idref="IAddress-4"/></void> 
+    <void property="salary"><float>100000.00</float></void> 
+    <void property="title"><string>CEO</string></void> 
+    <void property="hireDate"><object class="java.util.Date"><long>1000000000000</long></object></void>

+    <void property="manager"><object idref="IFullTimeEmployee-1"/></void>

+    <void property="company"><object idref="ICompany-1"/></void> 
+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IFullTimeEmployee-3" method="create" class="&factory;">
+    <class>&package;.IFullTimeEmployee</class>
+    <void property="firstName"><string>Melvin</string></void> 
+    <void property="lastName"><string>Medfield</string></void> 
+    <void property="homeAddress"><object idref="IAddress-5"/></void> 
+    <void property="salary"><float>75000.00</float></void> 
+    <void property="title"><string>Programmer</string></void> 
+    <void property="hireDate"><object class="java.util.Date"><long>1150000000000</long></object></void>

+    <void property="manager"><object idref="IFullTimeEmployee-1"/></void>

+    <void property="company"><object idref="ICompany-1"/></void> 
+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IPartTimeEmployee-1" method="create" class="&factory;">
+    <class>&package;.IPartTimeEmployee</class>
+    <void property="firstName"><string>William</string></void> 
+    <void property="lastName"><string>While</string></void> 
+    <void property="homeAddress"><object idref="IAddress-6"/></void> 
+    <void property="wage"><float>15.00</float></void> 
+    <void property="weeklyHours"><int>30</int></void> 
+    <void property="title"><string>Administrative Assistant</string></void>

+    <void property="hireDate"><object class="java.util.Date"><long>1160000000000</long></object></void>

+    <void property="manager"><object idref="IFullTimeEmployee-2"/></void>

+    <void property="company"><object idref="ICompany-1"/></void> 
+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IProduct-1" method="create" class="&factory;">
+    <class>&package;.IProduct</class>
+    <void property="name"><string>Download Accelerator</string></void>

+    <void property="price"><float>19.95</float></void> 
+    <void property="distributors"> 
+     <void method="add"><object idref="ICompany-1"/></void> 
+    </void> 
+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IProduct-2" method="create" class="&factory;">
+    <class>&package;.IProduct</class>
+    <void property="name"><string>Browser Spiffer-Upper</string></void>

+    <void property="price"><float>31.50</float></void> 
+    <void property="distributors"> 
+     <void method="add"><object idref="ICompany-1"/></void> 
+    </void> 
+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IProduct-3" method="create" class="&factory;">
+    <class>&package;.IProduct</class>
+    <void property="name"><string>Web Ad-Away</string></void> 
+    <void property="price"><float>15.00</float></void> 
+    <void property="distributors"> 
+     <void method="add"><object idref="ICompany-1"/></void> 
+    </void> 
+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="ILineItem-1" method="create" class="&factory;">
+    <class>&package;.ILineItem</class>
+    <void property="quantity"><int>1</int></void> 
+    <void property="product"><object idref="IProduct-1"/></void> 
+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="ILineItem-2" method="create" class="&factory;">
+    <class>&package;.ILineItem</class>
+    <void property="quantity"><int>2</int></void> 
+    <void property="product"><object idref="IProduct-1"/></void> 
+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="ILineItem-3" method="create" class="&factory;">
+    <class>&package;.ILineItem</class>
+    <void property="quantity"><int>3</int></void> 
+    <void property="product"><object idref="IProduct-2"/></void> 
+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="ICustomer-1" method="create" class="&factory;">
+    <class>&package;.ICustomer</class>
+    <void property="firstName"><string>Emily</string></void> 
+    <void property="lastName"><string>Easton</string></void> 
+    <void property="homeAddress"><object idref="IAddress-7"/></void> 
+    <void property="shippingAddress"><object idref="IAddress-7"/></void>

+    <void property="billingAddress"><object idref="IAddress-7"/></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="ICustomer-2" method="create" class="&factory;">
+    <class>&package;.ICustomer</class>
+    <void property="firstName"><string>Marcus</string></void> 
+    <void property="lastName"><string>Murray</string></void> 
+    <void property="homeAddress"><object idref="IAddress-8"/></void> 
+    <void property="shippingAddress"><object idref="IAddress-8"/></void>

+    <void property="billingAddress"><object idref="IAddress-8"/></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="ICustomer-3" method="create" class="&factory;">
+    <class>&package;.ICustomer</class>
+    <void property="firstName"><string>Orson</string></void> 
+    <void property="lastName"><string>O'Farrell</string></void> 
+    <void property="homeAddress"><object idref="IAddress-9"/></void> 
+    <void property="shippingAddress"><object idref="IAddress-9"/></void>

+    <void property="billingAddress"><object idref="IAddress-10"/></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="ICustomer-3" method="create" class="&factory;">
+    <class>&package;.ICustomer</class>
+    <void property="firstName"><string>Andy</string></void> 
+    <void property="lastName"><string>Anderson</string></void> 
+    <void property="homeAddress"><object idref="IAddress-11"/></void> 
+    <void property="shippingAddress"><object idref="IAddress-11"/></void>

+    <void property="billingAddress"><object idref="IAddress-11"/></void>

+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IProductOrder-1" method="create" class="&factory;">
+    <class>&package;.IProductOrder</class>
+    <void property="orderDate"><object class="java.util.Date"><long>1170000000000</long></object></void>

+    <void property="shippedDate"><object class="java.util.Date"><long>1180000000000</long></object></void>

+    <void property="customer"><object idref="ICustomer-1"/></void> 
+   </object> 
+  </void> 
+
+  <void method="add"> 
+   <object id="IProductOrder-2" method="create" class="&factory;">
+    <class>&package;.IProductOrder</class>
+    <void property="orderDate"><object class="java.util.Date"><long>1190000000000</long></object></void>

+    <void property="customer"><object idref="ICustomer-2"/></void> 
+   </object> 
+  </void> 
+
+ </object> 
+</java> 

Propchange: incubator/openjpa/trunk/openjpa-persistence-jdbc/src/test/resources/org/apache/openjpa/persistence/models/company/companies.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message