db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bra...@apache.org
Subject svn commit: r331850 [2/2] - in /incubator/jdo/trunk/tck20: ./ test/java/org/apache/jdo/tck/pc/mylib/ test/java/org/apache/jdo/tck/query/ test/java/org/apache/jdo/tck/query/api/ test/jdo/applicationidentity/ test/jdo/applicationidentity/org/apache/jdo/t...
Date Tue, 08 Nov 2005 17:18:34 GMT
Modified: incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/company/package-derby.orm
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/company/package-derby.orm?rev=331850&r1=331849&r2=331850&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/company/package-derby.orm
(original)
+++ incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/company/package-derby.orm
Tue Nov  8 09:17:35 2005
@@ -112,6 +112,10 @@
                 <key column="TYPE"/>
                 <value column="PHONENO"/>
             </field>
+            <query name="packageORM">
+                SELECT FROM org.apache.jdo.tck.pc.company.Person
+                WHERE personid > 2
+            </query>
         </class>
 
         <class name="Insurance" table="insuranceplans">

Modified: incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/mylib/package-derby.orm
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/mylib/package-derby.orm?rev=331850&r1=331849&r2=331850&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/mylib/package-derby.orm
(original)
+++ incubator/jdo/trunk/tck20/test/orm/applicationidentity/org/apache/jdo/tck/pc/mylib/package-derby.orm
Tue Nov  8 09:17:35 2005
@@ -50,6 +50,12 @@
       <field name="PrimitiveTypes" column="PrimitiveTypes"/>
     </class>
 
+    <class name="PCClass" table="PCClass">
+      <field name="id" column="ID" primary-key="true"/>
+      <field name="number1" column="NUMBER1"/>
+      <field name="number2" column="NUMBER2"/>
+    </class>
+
   </package>
 </orm>
 

Modified: incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/company/package-derby.orm
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/company/package-derby.orm?rev=331850&r1=331849&r2=331850&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/company/package-derby.orm
(original)
+++ incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/company/package-derby.orm
Tue Nov  8 09:17:35 2005
@@ -117,6 +117,10 @@
                 <key column="TYPE"/>
                 <value column="PHONENO"/>
             </field>
+            <query name="packageORM">
+                SELECT FROM org.apache.jdo.tck.pc.company.Person
+                WHERE personid > 2
+            </query>
         </class>
 
         <class name="Insurance" table="insuranceplans">

Modified: incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/mylib/package-derby.orm
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/mylib/package-derby.orm?rev=331850&r1=331849&r2=331850&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/mylib/package-derby.orm
(original)
+++ incubator/jdo/trunk/tck20/test/orm/datastoreidentity/org/apache/jdo/tck/pc/mylib/package-derby.orm
Tue Nov  8 09:17:35 2005
@@ -54,6 +54,13 @@
       <field name="PrimitiveTypes" column="PrimitiveTypes"/>
     </class>
 
+    <class name="PCClass" table="PCClass">
+      <datastore-identity strategy="identity" column="DATASTORE_IDENTITY"/>
+      <field name="id" column="ID"/>
+      <field name="number1" column="NUMBER1"/>
+      <field name="number2" column="NUMBER2"/>
+    </class>
+
   </package>
 </orm>
 

Modified: incubator/jdo/trunk/tck20/test/sql/derby/applicationidentity/schema.sql
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/sql/derby/applicationidentity/schema.sql?rev=331850&r1=331849&r2=331850&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/sql/derby/applicationidentity/schema.sql (original)
+++ incubator/jdo/trunk/tck20/test/sql/derby/applicationidentity/schema.sql Tue Nov  8 09:17:35
2005
@@ -13,6 +13,7 @@
 DROP TABLE PCPoint;
 DROP TABLE PCPoint2;
 DROP TABLE PrimitiveTypes;
+DROP TABLE PCClass;
 
 CREATE TABLE PCPoint (
     ID BIGINT NOT NULL,
@@ -59,6 +60,13 @@
     bigInteger INTEGER,
     PrimitiveTypes INTEGER,
     CONSTRAINT PT_CONST PRIMARY KEY (ID)
+);
+
+CREATE TABLE PCClass (
+    ID BIGINT NOT NULL,
+    NUMBER1 INTEGER,
+    NUMBER2 INTEGER,
+    CONSTRAINT PCCLASS_CONST PRIMARY KEY (ID)
 );
 
 -------------------------

Modified: incubator/jdo/trunk/tck20/test/sql/derby/datastoreidentity/schema.sql
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/sql/derby/datastoreidentity/schema.sql?rev=331850&r1=331849&r2=331850&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/sql/derby/datastoreidentity/schema.sql (original)
+++ incubator/jdo/trunk/tck20/test/sql/derby/datastoreidentity/schema.sql Tue Nov  8 09:17:35
2005
@@ -13,6 +13,7 @@
 DROP TABLE PCPoint;
 DROP TABLE PCPoint2;
 DROP TABLE PrimitiveTypes;
+DROP TABLE PCClass;
 
 CREATE TABLE PCPoint (
     DATASTORE_IDENTITY BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY,
@@ -63,6 +64,14 @@
     bigInteger INTEGER,
     PrimitiveTypes INTEGER,
     CONSTRAINT PT_CONST PRIMARY KEY (DATASTORE_IDENTITY)
+);
+
+CREATE TABLE PCClass (
+    DATASTORE_IDENTITY BIGINT NOT NULL GENERATED ALWAYS AS IDENTITY,
+    ID BIGINT,
+    NUMBER1 INTEGER,
+    NUMBER2 INTEGER,
+    CONSTRAINT PCCLASS_CONST PRIMARY KEY (DATASTORE_IDENTITY)
 );
 
 -------------------------

Modified: incubator/jdo/trunk/tck20/test/testdata/org/apache/jdo/tck/pc/mylib/mylibForQueryTests.xml
URL: http://svn.apache.org/viewcvs/incubator/jdo/trunk/tck20/test/testdata/org/apache/jdo/tck/pc/mylib/mylibForQueryTests.xml?rev=331850&r1=331849&r2=331850&view=diff
==============================================================================
--- incubator/jdo/trunk/tck20/test/testdata/org/apache/jdo/tck/pc/mylib/mylibForQueryTests.xml
(original)
+++ incubator/jdo/trunk/tck20/test/testdata/org/apache/jdo/tck/pc/mylib/mylibForQueryTests.xml
Tue Nov  8 09:17:35 2005
@@ -9,6 +9,8 @@
             <list>
                 <ref local="primitiveTypesPositive"/>
                 <ref local="primitiveTypesNegative"/>
+                <ref local="pcClass1"/>
+                <ref local="pcClass2"/>
                 <ref local="primitiveTypesCharacterStringLiterals"/>
             </list>
         </constructor-arg>
@@ -40,6 +42,18 @@
         <property name="doubleNull"><value>-4.0</value></property>
     </bean>
 
+    <bean id="pcClass1" class="org.apache.jdo.tck.pc.mylib.PCClass">
+        <property name="id"><value>1</value></property>
+        <property name="number1"><value>10</value></property>
+        <property name="number2"><value>10</value></property>
+    </bean>
+
+    <bean id="pcClass2" class="org.apache.jdo.tck.pc.mylib.PCClass">
+        <property name="id"><value>2</value></property>
+        <property name="number1"><value>20</value></property>
+        <property name="number2"><value>20</value></property>
+    </bean>
+
     <bean id="primitiveTypesCharacterStringLiterals" 
         class="org.apache.jdo.tck.pc.mylib.PrimitiveTypes">
         <property name="id"><value>3</value></property>
@@ -47,5 +61,4 @@
         <property name="charNull"><value>O</value></property>
         <property name="stringNull"><value>Even</value></property>
     </bean>
-
 </beans>



Mime
View raw message