Return-Path: Delivered-To: apmail-db-jdo-dev-archive@www.apache.org Received: (qmail 35251 invoked from network); 21 Jul 2007 17:51:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jul 2007 17:51:31 -0000 Received: (qmail 33783 invoked by uid 500); 21 Jul 2007 17:51: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 33771 invoked by uid 99); 21 Jul 2007 17:51:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jul 2007 10:51:32 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [212.150.49.174] (HELO mtaout4.barak.net.il) (212.150.49.174) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jul 2007 10:51:29 -0700 Received: from ILANC ([89.0.233.84]) by mtaout4.barak.net.il (Sun Java System Messaging Server 6.2-7.04 (built Aug 17 2006)) with ESMTPA id <0JLJ00A2BIX2L8A0@mtaout4.barak.net.il> for jdo-dev@db.apache.org; Sat, 21 Jul 2007 20:51:02 +0300 (IDT) Date: Sat, 21 Jul 2007 20:50:35 +0300 From: Ilan Kirsh Subject: Re: [VOTE] remove @Field and @Property; add @Persistent To: jdo-dev@db.apache.org Cc: JDO Expert Group Reply-to: Ilan Kirsh Message-id: <004601c7cbbf$b65033d0$0500000a@ILANC> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Mailer: Microsoft Outlook Express 6.00.2900.3138 Content-type: text/plain; format=flowed; charset=windows-1255; reply-type=original Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal References: <5D5ABB02-70EA-439E-B8C9-67A471E0F73F@SUN.com> <200707190545.39989.andy@jpox.org> <72AF1A53-17B7-4851-AE72-9DC4BA9F7E6F@SUN.com> <200707190736.14085.andy@jpox.org> <469F7855.1050707@spree.de> <705B9F42-DC2E-45D9-9F65-EFF7594C9BBE@SUN.com> <3EDF75FB-1022-411F-B53F-D9ABE3AD444A@SUN.com> X-Virus-Checked: Checked by ClamAV on apache.org In 11 the change should be from fields to members rather than back to fields. Also following 6 - recursionDepth in Persistent is missing and FetchField can be removed (but maybe mixing recursionDepth with Persistent is confusing, and FetchField should be preserved). Ilan Kirsh ObjectDB Software ----- Original Message ----- From: "Craig L Russell" To: Cc: "JDO Expert Group" Sent: Saturday, July 21, 2007 1:31 AM Subject: [VOTE] remove @Field and @Property; add @Persistent > I'd like to have a vote to approve this significant change to the > annotations. This is a summary of the changes referred to in the new JIRA > https://issues.apache.org/jira/browse/JDO-510 > > 1. Rename @Field to @Persistent and rename @Transient to @NotPersistent. > > 2. Delete @Property and @FieldPersistenceModifier. > > 3. Change src/java/javax/jdo/annotations/Column.java: String > targetField() default ""; > to src/java/javax/jdo/annotations/Column.java: String targetMember () > default ""; > > 4. Change src/java/javax/jdo/annotations/Embedded.java: String > ownerField() default ""; > to src/java/javax/jdo/annotations/Embedded.java: String ownerMember () > default ""; > > 5. Change src/java/javax/jdo/annotations/Embedded.java: Field[] > fields() default {}; > to src/java/javax/jdo/annotations/Embedded.java: Persistent[ ] > members() default {}; > > 6. Change src/java/javax/jdo/annotations/FetchGroup.java: FetchField[] > fields(); > to src/java/javax/jdo/annotations/FetchGroup.java: Persistent[] > members(); > > 7. Remove element src/java/javax/jdo/annotations/Persistent.java: > FieldPersistenceModifier persistenceModifier() > > 8. Change src/java/javax/jdo/annotations/Field.java: Class[] > fieldTypes() default {}; > to src/java/javax/jdo/annotations/Persistent.java: Class[] > boundTypes() default {}; > > 9. Remove element src/java/javax/jdo/annotations/Persistent.java: > Class fieldType() default void.class; > > 10. Change src/java/javax/jdo/annotations/ForeignKey.java: String [] > fields() default {}; > to src/java/javax/jdo/annotations/ForeignKey.java: String[] members () > default {}; > > 11. Change src/java/javax/jdo/annotations/Index.java: String[] > fields() default {}; > to src/java/javax/jdo/annotations/Index.java: String[] fields() > default {}; > > 12. Change src/java/javax/jdo/annotations/Serialized.java: * This is the > same as specifying @Field(serialized="true"). > to src/java/javax/jdo/annotations/Serialized.java: * This is the same as > specifying @Persistent (serialized="true"). > > 13. Remove the comment src/java/javax/jdo/annotations/ Transactional.java: > * "@Field (persistenceModifier=FieldPersistenceModifier.TRANSACTIONAL)". > > 14. Change src/java/javax/jdo/annotations/Unique.java: String[] > fields() default {}; > to src/java/javax/jdo/annotations/Unique.java: String[] members() > default {}; > > 15. Remove the comment src/java/javax/jdo/annotations/ NotPersistent.java: > * "@Field (persistenceModifier=FieldPersistenceModifier.NONE)". > > 16. Remove type() from @Persistent, as boundTypes() is used for this > feature with a reasonable default. > > 17. Added dependentElement, dependentKey, dependentValue, > serializedElement, serializedKey, serializedValue to @Persistent to > correspond to xml attributes of map and collection. > > 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! > >