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 22:24:20 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

------------------------------------------------------------------------------
  ||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.
+ where * includes Object, Simple``Interface, Simple``Class, 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 (Object, SimpleInterface, or SimpleClass).
The other member of the entry is a String.
+ These are maps where either the key or value is a PC type (Object, Simple``Interface, or
Simple``Class). The other member of the entry is a String.
   * Collection field is serialized in the main table ('''S''')
   * 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''') (This case is does not apply when the key is
a PC type; serializing a key does not make sense.)
@@ -41, +41 @@

  ||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''">||
  
+ 
+ == Applying cases to existing fields of Test*MapStringKeyCollections ==
+ 
+ === PC Values ===
+ ||Fields||Case||
+ ||Object0, Simple``Class3, Simple``Interface6||efk (default for embedded-key & embedded-value)||
+ ||Object1, Simple``Class4, Simple``Interface7||efk (default for embedded-value)||
+ ||Object2, Simple``Class5, Simple``Interface8||efk (embedded-key & embedded-value specified)||
+ ||Object42, Simple``Class45, Simple``Interface48||ee (embedded-key & embedded-value
specified)||
+ ||Object43, Simple``Class46, Simple``Interface49||ee (default for embedded-key)||
+ ||Object84, Simple``Class87, Simple``Interface90||es (embedded-key & embedded-value
specified)||
+ ||Object86, Simple``Class89, Simple``Interface92||S||
+ 
+ === PC Keys ===
+ ||Fields||Case||
+ ||Object0, Simple``Class3, Simple``Interface6||efk (default for embedded-key & embedded-value)||
+ ||Object1, Simple``Class4, Simple``Interface7||efk (default for embedded-key)||
+ ||Object2, Simple``Class5, Simple``Interface8||efk (embedded-key & embedded-value specified)||
+ ||Object42, Simple``Class45, Simple``Interface48||ee (embedded-key & embedded-value
specified)||
+ ||Object43, Simple``Class46, Simple``Interface49||ee (default for embedded-value)||
+ ||Object84, Simple``Class87, Simple``Interface90||ee (default for embedded-key, embedded-value)||
+ ||Object86, Simple``Class89, Simple``Interface92||S||
+ 
+ === Java type keys, values ===
+ ||Fields||Case||
+ ||String9, ...||ee (embedded-key & embedded-value specified)||
+ ||String10, ...||ee (default for embedded-value)||
+ ||String11, ...||ee (default for embedded-key & embedded-value)||
+ ||String51, ...||ee (embedded-key & embedded-value specified)||
+ ||String52, ...||ee (default for embedded-value)||
+ ||String93, ...||ee (default for embedded-key & embedded-value)||
+ ||String95, ...||S||
+ 

Mime
View raw message