db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <e...@jpox.org>
Subject fieldtypes metadata issues
Date Sat, 04 Jun 2005 21:00:40 GMT
Hi,
 
While running the tck tests I found these issues:
 
1. Below the class name is incorrect
 
Index:
F:/eclipse-new/eclipse/workspace/tck20/test/orm/datastoreidentity/org/ap
ache/jdo/tck/pc/fieldtypes/FieldsOfPrimitiveboolean-derby.orm
===================================================================
---
F:/eclipse-new/eclipse/workspace/tck20/test/orm/datastoreidentity/org/ap
ache/jdo/tck/pc/fieldtypes/FieldsOfPrimitiveboolean-derby.orm
(revision 179987)
+++
F:/eclipse-new/eclipse/workspace/tck20/test/orm/datastoreidentity/org/ap
ache/jdo/tck/pc/fieldtypes/FieldsOfPrimitiveboolean-derby.orm
(working copy)
@@ -2,7 +2,7 @@
 <!DOCTYPE orm PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects
Mapping Metadata 2.0//EN" "http://java.sun.com/dtd/orm_2_0.dtd">
 <orm>
     <package name="org.apache.jdo.tck.pc.fieldtypes">
-        <class name="FieldsOfPrimitiveBoolean"
table="FIELDSOFPRIMITIVEBOOLEAN">
+        <class name="FieldsOfPrimitiveboolean"
table="FIELDSOFPRIMITIVEBOOLEAN">
             <datastore-identity strategy="identity"
column="IDENTIFIER"/>
             <field name="boolean0" column="BOOLEAN0"/>
             <field name="boolean1" column="BOOLEAN1"/>
 
 
2. In datastore tests, the id field is not persistent.
 
Index:
F:/eclipse-new/eclipse/workspace/tck20/test/jdo/datastoreidentity/org/ap
ache/jdo/tck/pc/fieldtypes/SimpleClass.jdo
===================================================================
---
F:/eclipse-new/eclipse/workspace/tck20/test/jdo/datastoreidentity/org/ap
ache/jdo/tck/pc/fieldtypes/SimpleClass.jdo            (revision 179987)
+++
F:/eclipse-new/eclipse/workspace/tck20/test/jdo/datastoreidentity/org/ap
ache/jdo/tck/pc/fieldtypes/SimpleClass.jdo            (working copy)
@@ -4,6 +4,7 @@
     <package name="org.apache.jdo.tck.pc.fieldtypes">
         <class name="SimpleClass" identity-type="datastore">
             <implements name="SimpleInterface"/>
+            <field name="id"  persistence-modifier="none"/>
         </class>
     </package>
 </jdo>
 
3. Here the simple class definition was again defined, so I removed it
 
 
Index:
F:/eclipse-new/eclipse/workspace/tck20/test/jdo/datastoreidentity/org/ap
ache/jdo/tck/package.jdo
===================================================================
---
F:/eclipse-new/eclipse/workspace/tck20/test/jdo/datastoreidentity/org/ap
ache/jdo/tck/package.jdo           (revision 179987)
+++
F:/eclipse-new/eclipse/workspace/tck20/test/jdo/datastoreidentity/org/ap
ache/jdo/tck/package.jdo        (working copy)
@@ -26,9 +26,5 @@
         <class name="NoAccessToFieldsAfterPredelete"
persistence-modifier="persistence-aware"/>
         <class name="TestParts"
persistence-modifier="persistence-aware"/>
     </package>
-    <package name="org.apache.jdo.tck.pc.fieldtypes">
-        <class name="SimpleClass" identity-type="datastore">
-            <implements name="SimpleInterface"/>
-        </class>
-    </package>
+
 </jdo>
 
4. JPOX can't find the implementation classes.
 
Fixed. Get the latest nightly build.
 
5. Fields of simple interface are using BLOB types to store data in all
fields. 
 
It should only use LONG VARCHAR FOR BIT DATA types for the fields that
are marked as embedded in the metadata. For all non embedded fields, the
column should have a FK to the table Simple class.
 
CREATE TABLE FIELDSOFSIMPLEINTERFACE
(
    IDENTIFIER INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY,
    SIMPLEINTERFACE1 LONG VARCHAR FOR BIT DATA,
    SIMPLEINTERFACE102 LONG VARCHAR FOR BIT DATA,
..
 
 
 
Erik Bengtson
 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message