db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jdo Wiki] Update of "MappingCollections" by MichelleCaisse
Date Mon, 17 Oct 2005 17:16:21 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jdo Wiki" for change notification.

The following page has been changed by MichelleCaisse:
http://wiki.apache.org/jdo/MappingCollections

------------------------------------------------------------------------------
+ The TCK contains tests of persistence capable classes whose fields are Maps of different
types.
+ 
+ ||Class||Key type||Value type||
+ ||Hash``Map``String``Key``Collections||String||*||
+ ||Hash``Map``String``Value``Collections||*||String||
+ ||Hashtable``String``Key``Collections||String||*||
+ ||Hashtable``String``Value``Collections||*||String||
+ ||Map``String``Key``Collections||String||*||
+ ||Map``String``Value``Collections||*||String||
+ ||Tree``Map``String``Key``Collections||String||*||
+ ||Tree``Map``String``Value``Collections||*||String||
+ where * includes Object, SimpleInterface, SimpleClass, String, Date, and various wrapper
types.
+ 
  == Maps of Persistence Capable (PC) Types ==
  
- These are maps where either the key or value is a PC type. We test the following cases,
assuming a String key and PC value:
+ These are maps where either the key or value is a PC type (Object, SimpleInterface, or SimpleClass).
The other member of the entry is a String.
-  * Collection field is serialized in the main table ('''s''')
+  * Collection field is serialized in the main table ('''S''')
-  * String key is embedded in a join table; the PC value is mapped to a foreign key column
in the join table. The fk references the primary key of the table containing the PC. ('''efk''')
(default)
+  * String is embedded in a join table; PC is mapped to a foreign key column in the join
table. The fk references the primary key of the table containing the PC. ('''efk''') (default)
-  * PC value is serialized in a join table, the String key of the mapped pair is stored in
another column of the join table. ('''es''')
+  * PC value is serialized in a join table, the String key of the mapped pair is stored in
another column of the join table. ('''es''') (This case is does not apply when the key is
a PC type; serializing a key does not make sense.)
-  * PC value and String key are embedded in a join table. ('''ee''')
+  * PC and String embedded in a join table. ('''ee''')
  
  == Maps of Java Types ==
- These are maps where the key is a String and the value is a Java type, for example Date,
Locale, Integer. We test the following cases:
+ These are maps where the either the key or the value is a String and the other member of
the entry is a Java type (String, Date, or wrapper class). We test the following cases:
-  * Collection field is serialized in the main table ('''s''')
+  * Collection field is serialized in the main table ('''S''')
   * Both key and value are embedded in a join table ('''ee''')
  
  == Metadata for Maps ==
- The metadata for these cases, assuming the key is a String and the value is a PC type, is:
+ 
+ ||||Key is String, value is *||||
  ||case||jdo metadata||orm metadata||
- ||s|| <field serialized="true">|| <field name="''name''">||
+ ||S|| <field serialized="true">|| <field name="''name''">||
  ||efk|| <map embedded-key="true" embedded-value="false">|| <field name="''name''"
table="''join_table''">||
  ||es|| <map embedded-key="true" serialized-value="true">|| <field name="''name''"
table="''join_table''">||
  ||ee|| <map embedded-key="true" embedded-value="true">|| <field name="''name''"
table="''join_table''">||
  
+ ||||Key is *, value is String||||
+ ||case||jdo metadata||orm metadata||
+ ||S|| <field serialized="true">|| <field name="''name''">||
+ ||efk|| <map embedded-key="false" embedded-value="true">|| <field name="''name''"
table="''join_table''">||
+ ||ee|| <map embedded-key="true" embedded-value="true">|| <field name="''name''"
table="''join_table''">||
+ 

Mime
View raw message