Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 80111 invoked from network); 28 Jul 2006 14:35:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jul 2006 14:35:32 -0000 Received: (qmail 85025 invoked by uid 500); 28 Jul 2006 14:35:32 -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 85014 invoked by uid 99); 28 Jul 2006 14:35:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jul 2006 07:35:31 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.18.42.249] (HELO nwkea-pix-1.sun.com) (192.18.42.249) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Jul 2006 07:35:30 -0700 Received: from d1-sfbay-06.sun.com ([192.18.39.116]) by nwkea-pix-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id k6SEZ9HV029908 for ; Fri, 28 Jul 2006 07:35:09 -0700 (PDT) Received: from conversion-daemon.d1-sfbay-06.sun.com by d1-sfbay-06.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) id <0J34009019AG9F00@d1-sfbay-06.sun.com> (original mail from Martin.Zaun@Sun.COM) for jdo-dev@db.apache.org; Fri, 28 Jul 2006 07:35:08 -0700 (PDT) Received: from [192.168.0.3] ([216.27.190.11]) by d1-sfbay-06.sun.com (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPSA id <0J34005OTB6KU450@d1-sfbay-06.sun.com> for jdo-dev@db.apache.org; Fri, 28 Jul 2006 07:35:08 -0700 (PDT) Date: Fri, 28 Jul 2006 07:32:05 -0700 From: Martin Zaun Subject: Re: Advisory: JDO2 Annotation Metadata In-reply-to: <4D1586C5-AE43-418A-82F1-F9C77F4FA88E@Sun.COM> Sender: Martin.Zaun@Sun.COM To: jdo-dev@db.apache.org, JDO Expert Group Message-id: <44CA1FE5.3070506@sun.com> Organization: Sun Microsystems, Inc. MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en References: <200607050848.02232.andy@jpox.org> <44C0B5BD.6000706@versant.com> <4D1586C5-AE43-418A-82F1-F9C77F4FA88E@Sun.COM> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.13) Gecko/20060414 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Craig, +1 Right direction, detailed planning can proceed JDO annotations will override EJB3/JPA annotations I wouldn't mind if all annotations were declared in one package javax.jdo.annotation they could still be specified/described as two distinctive sets (domain object model and mapping metadata). Martin Craig L Russell wrote: > I'd like to get a sense of the community on this proposal based on the > recent discussion on the alias. Please provide some feedback. This > would be for a JDO 2.1 Maintenance Release. > > [+1] Right direction, detailed planning can proceed > > [-1] We need something different (please specify the direction) > > Proposal: > > JDO2 will define a complete set of annotations > > Annotations will be declared in two different packages; jdo annotations > would contain only object model metadata, not mapping metadata: > * javax.jdo.annotation.jdo > * javax.jdo.annotation.orm > > Annotation documentation will focus on mapping between annotations and > the existing xml metadata and will use the identical semantics of xml > metadata > > Compliant implementations that support JDK1.5 will be required to > accept annotated classes' metadata > > If annotated classes are used with xml metadata, xml metadata will > override annotation metadata. > > JDO2 will define interoperability with EJB3/JPA annotations > > Compliant implementations can optionally use @Entity annotations > instead of JDO annotations > > Mapping from EJB3/JPA to JDO will be defined so as to improve > portability of applications from one JDO implementation to others > > If both JDO and EJB3/JPA annotations are used in the same class we need > to choose between: > > * JDO annotations will override EJB3/JPA annotations > * This is illegal > > 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! >