From jdo-dev-return-4654-apmail-db-jdo-dev-archive=www.apache.org@db.apache.org Mon Jun 26 10:17:07 2006 Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 49444 invoked from network); 26 Jun 2006 10:17:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Jun 2006 10:17:07 -0000 Received: (qmail 77006 invoked by uid 500); 26 Jun 2006 10:17:06 -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 76995 invoked by uid 99); 26 Jun 2006 10:17:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jun 2006 03:17:06 -0700 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=INVALID_MSGID X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [195.166.130.40] (HELO ptb-cgirelay01.plus.net) (195.166.130.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jun 2006 03:17:05 -0700 Received: from [212.159.6.58] (port=60181 helo=ptn-atmail03.plus.net) by ptb-cgirelay01.plus.net with esmtp (Exim 4.34) id 1Fuo90-0005Oo-Jj; Mon, 26 Jun 2006 11:16:38 +0100 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: binary Mime-Version: 1.0 From: Andy Jefferson To: jdo-dev@db.apache.org, jdo-experts-ext@sun.com Subject: Re: JDO2 Annotations Reply-To: andy@jpox.org X-Mailer: AtMail 4.01 X-Origin: 83.54.162.160 Message-Id: d391061f4b3376d9af2b8ee212c41c14@webmail.plus.net X-Uidl: 115131838940164166 Date: Mon, 26 Jun 2006 11:40:00 +0100 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N For information, you can find an initial (top-level) set of suggested JDO2 annotations at http://jpox.cvs.sourceforge.net/jpox/JPOX/Plugins/Java5/src/java/org/jpox/annotations/ in case JDO2 decides to adopt its own annotations. The aim with these is to retain the mapping MetaData<->Annotation (which is what JPA does, just they dont have such generalised MetaData so cant specify things that we need). The main annotations are @PersistenceCapable class MyClass { @PersistentField String myField; ... } @PersistenceAware class MyAwareClass { ... } The "class" metadata element maps to the "PersistenceCapable" annotation. The "field" metadata element maps to the "PersistentField" annotation. The only place where this differs in this sample set is that I split out "PersistenceAware" as its own annotation. -- Andy