Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 97175 invoked from network); 25 Jun 2005 16:32:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jun 2005 16:32:33 -0000 Received: (qmail 30946 invoked by uid 500); 25 Jun 2005 16:32: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 30933 invoked by uid 99); 25 Jun 2005 16:32:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jun 2005 09:32:33 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=HTML_60_70,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; Sat, 25 Jun 2005 09:32:33 -0700 Received: from fe3.sun.com (fe3.Sun.COM [192.18.108.80] (may be forged)) by brmea-mail-3.sun.com (8.12.10/8.12.9) with ESMTP id j5PGWUw4018824 for ; Sat, 25 Jun 2005 10:32:30 -0600 (MDT) Received: from conversion-daemon.fe3.sun.com by fe3.sun.com (Sun Java System Messaging Server 6.1 HotFix 0.02 (built Aug 25 2004)) id <0IIN00401EEBTQ00@fe3.sun.com> (original mail from Craig.Russell@Sun.COM) for jdo-dev@db.apache.org; Sat, 25 Jun 2005 10:32:30 -0600 (MDT) Received: from [10.0.0.104] ([65.14.21.57]) by fe3.sun.com (Sun Java System Messaging Server 6.1 HotFix 0.02 (built Aug 25 2004)) with ESMTPSA id <0IIN00MELFA2BNG1@fe3.sun.com> for jdo-dev@db.apache.org; Sat, 25 Jun 2005 10:32:29 -0600 (MDT) Date: Sat, 25 Jun 2005 09:32:30 -0700 From: Craig Russell Subject: Re: TestRunner remarks In-reply-to: <200506241203.22758.andy@jpox.org> To: jdo-dev@db.apache.org Message-id: MIME-version: 1.0 X-Mailer: Apple Mail (2.730) Content-type: multipart/signed; protocol="application/pkcs7-signature"; boundary=Apple-Mail-198--323969140; micalg=sha1 References: <42B73803.2030909@spree.de> <42BB2D20.8060902@sun.com> <42BBE77C.2020707@spree.de> <200506241203.22758.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-198--323969140 Content-Type: multipart/alternative; boundary=Apple-Mail-197--323970103 --Apple-Mail-197--323970103 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hi, On Jun 24, 2005, at 4:03 AM, Andy Jefferson wrote: >> However, I have a question: >> >> The property "org.jpox.identifier.defaultSchemaName" is passed as >> system >> property. This is good because the default schema depends on the >> identity type. However, there are a number of other JPOX properties >> which are passed as java.util.Properties. Should we document >> somewhere >> that the default schema name property is passed as system property? >> > > Three comments :- > > 1. You should be using "javax.jdo.mapping.Schema" (and > javax.jdo.mapping.Catalog) and not this JPOX-specific property (as I > mentioned on the JPOX Forum thread about it that Michelle raised). > Michelle, > the reason you were not seeing any effect before was *because* you > were > passing this in as a system property and not using the JDO method > of PMF > property. I added that as an accepted System property yesterday in > JPOX CVS. Right. Now that JPOX supports the official jdo property, the JPOX properties should not be used. > > 2. I don't remember seeing anything in the JDO spec about accepting > PMF props > as System props (ok, JPOX supports it for many properties, but that > is an > extension IIRC and you can't rely on it for other impls). Correct > me if I'm > wrong (with a reference to the section of the JDO2 spec that > defines it). Right. PMF props are only accepted by specification in the properties file passed to the getPMF method. System properties are a vendor extension if they are supported at all, and I don't think it's best practice anyway. > > 3. As I also mentioned on the JPOX Forum thread, your schema name > should be in > UPPERCASE if you want schema validation to work (Derby accepts > UPPERCASE > identifiers - it only accepts mixed case if they are quoted, and we > don't > support validation of mixed case quoted at the moment either). No comment. Craig > > > -- > 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-197--323970103 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Hi,

On Jun 24, = 2005, at 4:03 AM, Andy Jefferson wrote:

However, I have a = question:

The property "org.jpox.identifier.defaultSchemaName" = is passed as system
property. This is good = because the default schema depends on the
identity = type. However, there are a number of other JPOX properties
which are passed as java.util.Properties. Should we = document somewhere
that the default schema = name property is passed as system property?


Three = comments :-

1. You should be using "javax.jdo.mapping.Schema" = (and=A0
javax.jdo.mapping.Catalog) and not this = JPOX-specific property (as I=A0
=A0
the reason you were not seeing any effect before was = *because* you were=A0
passing this in as a system property and not using = the JDO method of PMF=A0
Right. Now that JPOX supports = the official jdo property, the JPOX properties should not be = used.

2. I don't remember seeing = anything in the JDO spec about accepting PMF props=A0
as = System props (ok, JPOX supports it for many properties, but that is = an=A0
extension IIRC and you can't rely on it for other = impls). Correct me if I'm=A0
wrong = (with a reference to the section of the JDO2 spec that defines = it).

Right. PMF props are only = accepted by=A0specification in the properties file passed to the getPMF = method. System properties are a vendor extension if they are supported = at all, and I don't think it's best practice anyway.

3. As I also mentioned on the JPOX Forum thread, = your schema name should be in=A0
=A0
identifiers - it only accepts mixed case if they are = quoted, and we don't=A0
support = validation of mixed case quoted at the moment = either).

No comment.

Craig


--=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-197--323970103-- --Apple-Mail-198--323969140 Content-Transfer-Encoding: base64 Content-Type: application/pkcs7-signature; name=smime.p7s Content-Disposition: attachment; filename=smime.p7s MIAGCSqGSIb3DQEHAqCAMIACAQEx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