From jdo-commits-return-1019-apmail-db-jdo-commits-archive=www.apache.org@db.apache.org Fri Oct 14 21:21:14 2005 Return-Path: Delivered-To: apmail-db-jdo-commits-archive@www.apache.org Received: (qmail 27486 invoked from network); 14 Oct 2005 21:21:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Oct 2005 21:21:14 -0000 Received: (qmail 60032 invoked by uid 500); 14 Oct 2005 21:21:13 -0000 Mailing-List: contact jdo-commits-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jdo-dev@db.apache.org Delivered-To: mailing list jdo-commits@db.apache.org Received: (qmail 60021 invoked by uid 99); 14 Oct 2005 21:21:13 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2005 14:21:13 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 1BEEC237 for ; Fri, 14 Oct 2005 23:20:52 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Apache Wiki To: jdo-commits@db.apache.org Date: Fri, 14 Oct 2005 21:20:51 -0000 Message-ID: <20051014212051.7789.49788@ajax.apache.org> Subject: [Jdo Wiki] Update of "MappingCollections" by MichelleCaisse X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 ------------------------------------------------------------------------------ == Maps of Persistence Capable (PC) Types == - These are maps where either the key or value is a PC type. We test the following cases: + 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: * 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 mapped to a foreign key to a secondary table ('''efk''') + * 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) - * 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 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 and String key are embedded in a join table. ('''ee''') == Maps of Java Types == - These are maps where both key and value are Java types. We test the following cases: + 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: * Collection field is serialized in the main table ('''s''') - * Both key and value are embedded in a join table ('''efk''') + * 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: ||case||jdo metadata||orm metadata|| ||s|| || || - ||efk|| || || + ||efk|| || || ||es|| || || + ||ee|| || ||