Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 2677 invoked from network); 14 Feb 2006 21:57:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Feb 2006 21:57:41 -0000 Received: (qmail 13972 invoked by uid 500); 14 Feb 2006 21:57:41 -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 13961 invoked by uid 99); 14 Feb 2006 21:57:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2006 13:57:41 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=RCVD_IN_SORBS_WEB,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.98.36] (HELO brmea-mail-4.sun.com) (192.18.98.36) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2006 13:57:40 -0800 Received: from fe-amer-06.sun.com ([192.18.108.180]) by brmea-mail-4.sun.com (8.12.10/8.12.9) with ESMTP id k1ELvKuf021909 for ; Tue, 14 Feb 2006 14:57:20 -0700 (MST) Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0IUP00D015XUDA00@mail-amer.sun.com> (original mail from Craig.Russell@Sun.COM) for jdo-dev@db.apache.org; Tue, 14 Feb 2006 14:57:20 -0700 (MST) Received: from [10.224.131.181] (m815f36d0.tmodns.net [208.54.95.129]) by mail-amer.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0IUP006QT6BHKA50@mail-amer.sun.com> for jdo-dev@db.apache.org; Tue, 14 Feb 2006 14:57:19 -0700 (MST) Date: Tue, 14 Feb 2006 13:57:13 -0800 From: Craig L Russell Subject: Issue 160: Missing description of index, unique In-reply-to: <200602141014.28645.andy@jpox.org> Sender: Craig.Russell@Sun.COM To: Apache JDO project Cc: JDO Expert Group Message-id: <5669127F-62DF-48AD-A5E9-184F5C354EFE@Sun.COM> MIME-version: 1.0 X-Mailer: Apple Mail (2.746.2) Content-type: multipart/signed; protocol="application/pkcs7-signature"; boundary=Apple-Mail-21-585760646; micalg=sha1 References: <394E329B-CE91-4D3A-B2B7-0B53BDBAEC6D@Sun.COM> <200602141014.28645.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-21-585760646 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Hi Andy, Here's a proposal for review. I can't see the value in having the table attribute for embedded =20 index or unique elements. But if they are defined at the class or =20 interface level, the table would be used to identify an index or =20 unique constraint on an associated table (secondary table). ELEMENT index The index element specifies characteristics of an index associated =20 with the containing interface, property, class, join, version, =20 discriminator, field, key, value, element, or order. To specify that there is an index associated with the containing =20 element, without specifying the name of the index, the indexed =20 attribute can be used instead of the index element. Alternatively, =20 the index element with no attributes can be used. If the index element is specified at the class or interface level, =20 then column, field, or property elements contained in the index =20 element might contain only the name attribute. If the index element =20 is specified in the property, join, version, discriminator, field, =20 key, value, element or order, then there must not be any contained =20 column, field, or property elements in the index elements. ATTRIBUTE name The name attribute specifies the name of the index to generate for =20 this mapping. This attribute is used if the name of the index needs =20 to be specified. ATTRIBUTE unique The unique attribute specifies that the index is unique. ATTRIBUTE table The table attribute specifies the name of the table to which the =20 index applies. This attribute can only be used with index elements =20 defined at the class or interface level. ELEMENT unique The unique element specifies characteristics of a unique constraint =20 associated with the containing interface, class, property, join, =20 version, discriminator, field, key, value, or element. To specify that there is a unique constraint associated with the =20 containing element, without specifying the name of the unique =20 constraint, the unique attribute can be used instead of the unique =20 element. Alternatively, the unique element can be used with no =20 attributes or contained elements. If this element is specified at the class level, then column elements =20= contained in the unique element might contain only the name attribute. ATTRIBUTE deferred The deferred attribute specifies whether constraint checking on the =20 containing element is defined in the database as being deferred until =20= commit. This allows an optimization by the JDO implementation, and =20 might allow certain operations to succeed where they would normally =20 fail. For example, to exchange unique references between pairs of =20 objects requires that the unique constraint columns temporarily =20 contain duplicate values. Possible values are =93true=94 and =93false=94. The default is =93false=94= . ATTRIBUTE name The name attribute specifies the name of the unique constraint to =20 generate for this mapping. This attribute is used if the name of the =20 unique constraint needs to be specified. ATTRIBUTE table The table attribute specifies the name of the table to which the =20 unique constraint applies. This attribute can only be used with =20 unique elements defined at the class or interface level. Craig On Feb 14, 2006, at 1:14 AM, Andy Jefferson wrote: > Hi Craig, > >> At http://access1.sun.com/jdo/private/index.html > > I sent a mail to the jdo-dev list (and also the JDO2 EG) back on =20 > Monday 16 > Jan, entitled "Section 18 : Where is , > description ?" (viewable from the archive of the jdo-dev mailing =20 > list, though > not for the JDO2 EG archive since that was dead for 3 months). > > http://mail-archives.apache.org/mod_mbox/db-jdo-dev/200601.mbox/%=20 > 3c200601161712.08972.andy@jpox.org%3e > > I don't see anything in the spec for this. Would it be a quick job =20 > to get this > included ? > > > Thanks > --=20 > 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-21-585760646 Content-Transfer-Encoding: base64 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition: attachment; filename=smime.p7s MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIGUDCCAwkw ggJyoAMCAQICEB7Y7fLHmKoeHTUdbtYrvpAwDQYJKoZIhvcNAQEEBQAwYjELMAkGA1UEBhMCWkEx JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLD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