db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject svn commit: r366223 - in /db/jdo/trunk/tck20/test/orm: applicationidentity/org/apache/jdo/tck/pc/shoppingcart/ datastoreidentity/org/apache/jdo/tck/pc/shoppingcart/
Date Thu, 05 Jan 2006 17:26:45 GMT
Author: madams
Date: Thu Jan  5 09:26:42 2006
New Revision: 366223

URL: http://svn.apache.org/viewcvs?rev=366223&view=rev
Log:
JDO-272 Oops -- forgot to add orm files for app & ds id.

Added:
    db/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/shoppingcart/
    db/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/shoppingcart/package-derby.orm
    db/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/shoppingcart/
    db/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/shoppingcart/package-derby.orm

Added: db/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/shoppingcart/package-derby.orm
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/shoppingcart/package-derby.orm?rev=366223&view=auto
==============================================================================
--- db/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/shoppingcart/package-derby.orm
(added)
+++ db/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/shoppingcart/package-derby.orm
Thu Jan  5 09:26:42 2006
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE orm PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects Mapping Metadata
2.0//EN" "http://java.sun.com/dtd/orm_2_0.dtd">
+<!--
+This file contains the schema information when an implementation
+has application identity.
+-->
+<orm>
+    <package name="org.apache.jdo.tck.pc.shoppingcart">
+
+        <class name="Cart" table="CARTS">
+            <field name="id" column="CART_ID"/>
+            <field name="customerId" column="CUSTOMER_ID"/>
+            <field name="entries" mapped-by="cart"/>
+        </class>
+
+        <class name="CartEntry" table="CART_ENTRIES">
+            <field name="id" column="ID"/>
+            <field name="quantity" column="QUANTITY"/>
+            <field name="product" column="SKU"/>
+            <field name="cart" column="CART_ID"/>
+        </class>
+
+        <class name="Product" table="PRODUCTS">
+            <field name="sku" column="SKU"/>
+            <field name="description" column="DESCRIPTION"/>
+        </class>
+
+        <class name="Undetachable" table="UNDETACHABLES">
+            <field name="id" column="UNDETACHABLE_ID"/>
+            <field name="foo" column="FOO"/>
+            <field name="bar" column="BAR"/>
+        </class>
+
+    </package>
+</orm>

Added: db/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/shoppingcart/package-derby.orm
URL: http://svn.apache.org/viewcvs/db/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/shoppingcart/package-derby.orm?rev=366223&view=auto
==============================================================================
--- db/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/shoppingcart/package-derby.orm
(added)
+++ db/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/shoppingcart/package-derby.orm
Thu Jan  5 09:26:42 2006
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE orm PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects Mapping Metadata
2.0//EN" "http://java.sun.com/dtd/orm_2_0.dtd">
+<!--
+This file contains the schema information when an implementation
+has application identity.
+-->
+<orm>
+    <package name="org.apache.jdo.tck.pc.shoppingcart">
+
+        <class name="Cart" table="CARTS">
+            <field name="id" column="CART_ID" primary-key="true"/>
+            <field name="customerId" column="CUSTOMER_ID"/>
+            <field name="entries" mapped-by="cart"/>
+        </class>
+
+        <class name="CartEntry" table="CART_ENTRIES">
+            <field name="id" column="ID" primary-key="true"/>
+            <field name="quantity" column="QUANTITY"/>
+            <field name="product" column="SKU" foreign-key="true"/>
+            <field name="cart" column="CART_ID" foreign-key="true"/>
+        </class>
+
+        <class name="Product" table="PRODUCTS">
+            <field name="sku" column="SKU" primary-key="true"/>
+            <field name="description" column="DESCRIPTION"/>
+        </class>
+
+        <class name="Undetachable" table="UNDETACHABLES">
+            <field name="id" column="UNDETACHABLE_ID" primary-key="true"/>
+            <field name="foo" column="FOO"/>
+            <field name="bar" column="BAR"/>
+        </class>
+
+    </package>
+</orm>



Mime
View raw message