Return-Path: Delivered-To: apmail-incubator-open-jpa-dev-archive@locus.apache.org Received: (qmail 22167 invoked from network); 15 Nov 2006 00:58:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Nov 2006 00:58:33 -0000 Received: (qmail 57219 invoked by uid 500); 15 Nov 2006 00:58:43 -0000 Delivered-To: apmail-incubator-open-jpa-dev-archive@incubator.apache.org Received: (qmail 57188 invoked by uid 500); 15 Nov 2006 00:58:43 -0000 Mailing-List: contact open-jpa-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: open-jpa-dev@incubator.apache.org Delivered-To: mailing list open-jpa-dev@incubator.apache.org Received: (qmail 57179 invoked by uid 99); 15 Nov 2006 00:58:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2006 16:58:43 -0800 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of plinskey@bea.com designates 63.96.162.5 as permitted sender) Received: from [63.96.162.5] (HELO ussjmh01.bea.com) (63.96.162.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2006 16:58:30 -0800 Received: from ussjfe01.amer.bea.com (ussjfe01b.bea.com [172.16.120.57]) by ussjmh01.bea.com (Switch-3.2.2/Switch-3.2.2) with ESMTP id kAF0vHvb002588 for ; Tue, 14 Nov 2006 16:58:08 -0800 Received: from repbex02.amer.bea.com ([10.160.26.99]) by ussjfe01.amer.bea.com with Microsoft SMTPSVC(5.0.2195.6713); Tue, 14 Nov 2006 16:56:52 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: openjpa.Id property Date: Tue, 14 Nov 2006 16:56:48 -0800 Message-ID: <7D856CDFE035FF45A0420ACBD71BDD630271BF54@repbex02.amer.bea.com> In-Reply-To: <455A5FDE.6000300@gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: openjpa.Id property Thread-Index: AccITXpd4+A0trZ1RmGE89rxrPwfPAAA1Pag From: "Patrick Linskey" To: X-OriginalArrivalTime: 15 Nov 2006 00:56:52.0353 (UTC) FILETIME=[F0317F10:01C70850] X-PMX-Version: 4.7.1.128075, Antispam-Engine: 2.5.0.283055, Antispam-Data: 2006.11.14.155433 X-Virus-Checked: Checked by ClamAV on apache.org I ended up creating an Id property and eventually moving it to the Configuration level, since it seems like something that is usable outside the context of persistence in particular. I'll immediately be using it in LogFactoryImpl to implement something we talked about a while back re: diagnostic context names. -Patrick --=20 Patrick Linskey BEA Systems, Inc.=20 _______________________________________________________________________ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it.=20 > -----Original Message----- > From: Bryan Noll [mailto:bwnoll@gmail.com]=20 > Sent: Tuesday, November 14, 2006 4:31 PM > To: open-jpa-dev@incubator.apache.org > Subject: Re: openjpa.Id property >=20 > When I see 'AbsoluteUnitName'... I immediately think... "I don't know=20 > what that means".... >=20 > I guess I'd prefer to stick with terminology that I'm more=20 > familiar with=20 > (and I'm assuming users would be more familiar with it too). >=20 > Again though... if you feel strongly about this... I'll defer... it's=20 > just a property name.... >=20 > Craig L Russell wrote: > > So does it make sense to consider how Java has handled a similar=20 > > concept:=20 > >=20 > http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#getA > bsolutePath()=20 > > > > > > Could we use some of the same terms, perhaps=20 > AbsoluteUnitName for the=20 > > purpose you are proposing here, and not implement UnitName until=20 > > someone asks for it? > > > > In the non-managed environment, I assume application-name and=20 > > module-name are empty so the absolute unit name would be=20 > the same as=20 > > the unit name? > > > > Craig > > > > On Nov 14, 2006, at 2:48 PM, Patrick Linskey wrote: > > > >> So I'm having a bit of a hard time with this property setting. > >> > >> In many environments, it makes a lot of sense to line up the > >> openjpa.PersistenceUnitName property with the setting in the=20 > >> persistence.xml > >> file. However, in an appserver, that name might not be=20 > unique. We (BEA) > >> sometimes need to be able to get the "fully-qualified"=20 > persistence unit > >> name, which is probably most closely defined in a Java EE=20 > environment as > >> application-name.module-name.persistence-unit-name or somesuch. > >> > >> But obviously, if I create a property called=20 > >> openjpa.PersistenceUnitName, > >> people would (understandably) assume that the property=20 > should contain=20 > >> just > >> persistence-unit-name, and not the fully-qualified beast.=20 > That's why=20 > >> I was > >> thinking along the terms of 'Id' instead of 'PersistenceUnitName'. > >> > >> Do others agree that these concepts are not quite the same? If so,=20 > >> should I > >> create a property for each (since PersistenceUnitName might be=20 > >> useful), or > >> should I just create the ID-related one, since that's all=20 > I really need > >> right now? > >> > >> -Patrick > >> > >> --Patrick Linskey > >> BEA Systems, Inc. > >> > >>=20 > ______________________________________________________________ > _________ > >> Notice: This email message, together with any=20 > attachments, may contain > >> information of BEA Systems, Inc., its subsidiaries =20 > and affiliated > >> entities, that may be confidential, proprietary, =20 > copyrighted and/or > >> legally privileged, and is intended solely for the use of=20 > the individual > >> or entity named in this message. If you are not the=20 > intended recipient, > >> and have received this message in error, please=20 > immediately return this > >> by email and then delete it. > >> > >>> -----Original Message----- > >>> From: Craig.Russell@Sun.COM [mailto:Craig.Russell@Sun.COM] > >>> Sent: Thursday, November 09, 2006 4:50 PM > >>> To: open-jpa-dev@incubator.apache.org > >>> Subject: Re: openjpa.Id property > >>> > >>> Hi Patrick, > >>> > >>> I don't think there would be an issue with calling it unitName or > >>> persistenceUnitName, as in getUnitName() or > >>> getPersistenceUnitName(). > >>> It will be common for people to try to figure out what the Id > >>> property from a Configuration really means so the more=20 > help we give > >>> them the easier it will be to remember. > >>> > >>> openjpa.unitName > >>> openjpa.persistenceUnitName > >>> > >>> Maybe I'm missing something obvious... > >>> > >>> Craig > >>> > >>> On Nov 9, 2006, at 2:19 PM, Patrick Linskey wrote: > >>> > >>>> Hi, > >>>> > >>>> It's useful in a number of places to get an identifier for a > >>>> particular > >>>> Configuration. For example, as we discussed a few months > >>> ago, it would > >>>> be useful if the logging subsystem automatically wrote the > >>> persistence > >>>> unit's ID along with log messages if no such ID was specified in > >>>> the log > >>>> configuration. > >>>> > >>>> Any objections to such an addition? In a JPA=20 > environment, this would > >>>> correspond to the persistence unit's unitName attribute. > >>>> > >>>> Any suggestions for a better name than openjpa.Id for the > >>> property? > >>>> This > >>>> would result in an OpenJPAConfiguration.getId() method call that > >>>> returned a String. > >>>> > >>>> -Patrick > >>>> > >>>> --Patrick Linskey > >>>> BEA Systems, Inc. > >>>> > >>>> > >>> ______________________________________________________________ > >>> ________ > >>>> _ > >>>> Notice: This email message, together with any attachments, may > >>>> contain > >>>> information of BEA Systems, Inc., its subsidiaries and > >>>> affiliated > >>>> entities, that may be confidential, proprietary, copyrighted > >>>> and/or > >>>> legally privileged, and is intended solely for the use of the > >>>> individual > >>>> or entity named in this message. If you are not the intended > >>>> recipient, > >>>> and have received this message in error, please=20 > immediately return > >>>> this > >>>> by email and then delete it. > >>> > >>> Craig Russell > >>> Architect, Sun Java Enterprise System=20 > http://java.sun.com/products/jdo > >>> 408 276-5638 mailto:Craig.Russell@sun.com > >>> P.S. A good JDO? O, Gasp! > >>> > >>> > > > > Craig Russell > > Architect, Sun Java Enterprise System=20 > http://java.sun.com/products/jdo > > 408 276-5638 mailto:Craig.Russell@sun.com > > P.S. A good JDO? O, Gasp! > > >=20