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 Fri, 14 Oct 2005 00:57:17 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 comment on the change is:
Notes and musings

------------------------------------------------------------------------------
- = Maps of Persistence Capable (PC) Types =
+ == Maps of Persistence Capable (PC) Types ==
  
- We test the following cases:
+ These are maps where either the key or value is a PC type. 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, the PC member of the mapped pair is
a reference to a secondary table (er)
+  * Both key and value are embedded in a join table, the PC member of the mapped pair is
a reference to a secondary table ('''er''')
-  * PC key or value is serialized in a join table, the non-PC member of the mapped pair is
stored in another column of the join table (es)
+  * PC key or value is serialized in a join table, the non-PC member of the mapped pair is
stored in another column of the join table ('''es''')
  
- = Maps of Java Types =
+ == Maps of Java Types ==
+ These are maps where both key and value are Java types. We test the following cases:
+  * Collection field is serialized in the main table ('''s''')
+  * Both key and value are embedded in a join table ('''er''')
  
- We test the following cases:
-  * Collection field is serialized in the main table
-  * Both key and value are embedded in a join table
+ == Metadata for Maps ==
+ The metadata for these cases, assuming the key is a String and the value is a PC type, is:
+ ||case||jdo metadata||orm metadata||
+ ||s|| <field serialized="true">|| <field name="''name''">||
+ ||er|| <map embedded-key="true" embedded-value="true">|| <field name="''name''"
table="''join_table''">||
+ ||es|| <map embedded-key="true" serialized-value="true">|| <field name="''name''"
table="''join_table''">||
  

Mime
View raw message