Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 32939 invoked from network); 26 Aug 2005 08:30:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Aug 2005 08:30:29 -0000 Received: (qmail 23874 invoked by uid 500); 26 Aug 2005 08:28:33 -0000 Mailing-List: contact jdo-dev-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-dev@db.apache.org Received: (qmail 16329 invoked by uid 99); 26 Aug 2005 08:27:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 26 Aug 2005 01:27:20 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=HTML_MESSAGE,HTML_OBFUSCATE_05_10 X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.34] (HELO brmea-mail-3.sun.com) (192.18.98.34) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Aug 2005 22:02:16 -0700 Received: from fe1.sun.com ([192.18.108.78]) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id j7Q51vWR000242 for ; Thu, 25 Aug 2005 23:01:58 -0600 (MDT) Received: from conversion-daemon.fe1.sun.com by fe1.sun.com (Sun Java System Messaging Server 6.1 HotFix 0.02 (built Aug 25 2004)) id <0ILT000018DAJR00@fe1.sun.com> (original mail from Craig.Russell@Sun.COM) for jdo-dev@db.apache.org; Thu, 25 Aug 2005 23:01:57 -0600 (MDT) Received: from [192.168.0.10] ([24.6.172.77]) by fe1.sun.com (Sun Java System Messaging Server 6.1 HotFix 0.02 (built Aug 25 2004)) with ESMTPSA id <0ILT00L78CN8TI82@fe1.sun.com> for jdo-dev@db.apache.org; Thu, 25 Aug 2005 23:01:57 -0600 (MDT) Date: Thu, 25 Aug 2005 22:01:56 -0700 From: Craig Russell Subject: Re: Minutes: JDO TCK Conference Call Friday, Aug 19, 9 am PST In-reply-to: <200508201025.08092.andy@jpox.org> To: jdo-dev@db.apache.org Message-id: <9A820DC4-5F97-4D2B-89EB-4FE8817C6BAA@Sun.COM> MIME-version: 1.0 X-Mailer: Apple Mail (2.734) Content-type: multipart/signed; protocol="application/pkcs7-signature"; boundary=Apple-Mail-37-696428851; micalg=sha1 References: <42DFF7BB.4070407@sun.com> <430500A1.2050801@sun.com> <200508201025.08092.andy@jpox.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --Apple-Mail-37-696428851 Content-Type: multipart/alternative; boundary=Apple-Mail-36-696428224 --Apple-Mail-36-696428224 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi Andy, On Aug 20, 2005, at 2:25 AM, Andy Jefferson wrote: >> CollectionOfObject doesn't work JDO-121. AI: Need feedback from Erik >> or Andy. >> > > Feedback : CollectionCollections has a field Object1 that is a > Collection embedded in the join table. The TCK is > expecting a > schema with join table having columns for the FK back to the owner > object, > and the fields for the element. JPOX looks at this from a different > angle and > requires a PK on this join table and so, since we don't have an id > for the > embedded SimpleClass, we add an "adapter index" column to form the > PK. As has > been discussed in the past, the user has no obvious way of saying > that they > don't want a PK applying to the join table. They have the key> > element but that is only currently for specifying the pk name. There is a natural PK for the join table. It's a combination of the FK plus the column mapped to the id field. If this were defined to be the PK for the join table in the schema, would that work? Craig > > In addition, since the test is using java.util.Collection, which > can allow > duplicates, the JDO impl can utilise an "adapter index" in the same > way to > allow duplicates in the join table. > > > > -- > Andy > Java Persistent Objects - JPOX > Craig Russell Architect, Sun Java Enterprise System http://java.sun.com/products/jdo 408 276-5638 mailto:Craig.Russell@sun.com P.S. A good JDO? O, Gasp! --Apple-Mail-36-696428224 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Hi Andy,

On = Aug 20, 2005, at 2:25 AM, Andy Jefferson wrote:

CollectionOfObject doesn't work = JDO-121. AI: Need feedback from Erik
or = Andy.


Feedback : CollectionCollections = has a field Object1 that is a=A0
=A0
schema with join table having columns for the FK = back to the owner object,=A0
and the = fields for the element. JPOX looks at this from a different angle = and=A0
requires a PK on this join table and so, since we = don't have an id for the=A0
embedded = SimpleClass, we add an "adapter index" column to form the PK. As = has=A0
been discussed in the past, the user has no obvious = way of saying that they=A0
don't = want a PK applying to the join table. They have the = <primary-key>=A0
element = but that is only currently for specifying the pk = name.

There is a natural PK for the = join table. It's a combination of the FK plus the column mapped to the = id field. If this were defined to be the PK for the join table in the = schema, would that work?

Craig


In addition, since the test is using = java.util.Collection, which can allow=A0
=A0
allow duplicates in the join table.



--=A0
Java Persistent Objects - = JPOX


Craig Russell

Architect, Sun Java = Enterprise System http://java.sun.com/products/jdo=

408 = 276-5638 mailto:Craig.Russell@sun.com

P.S. A = good JDO? O, Gasp!


= --Apple-Mail-36-696428224-- --Apple-Mail-37-696428851 Content-Transfer-Encoding: base64 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition: attachment; filename=smime.p7s MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGHjCCAtcw ggJAoAMCAQICAw3FWTANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhh d3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVt YWlsIElzc3VpbmcgQ0EwHhcNMDUwMTEwMDA0MTA5WhcNMDYwMTEwMDA0MTA5WjBHMR8wHQYDVQQD ExZUaGF3dGUgRnJlZW1haWwgTWVtYmVyMSQwIgYJKoZIhvcNAQkBFhVDcmFpZy5SdXNzZWxsQFN1 bi5DT00wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDti7ZE4rO6oXKbLM02A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