db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilan Kirsh <ki...@objectdb.com>
Subject Re: [VOTE] remove @Field and @Property; add @Persistent
Date Sat, 21 Jul 2007 17:50:35 GMT
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" <Craig.Russell@Sun.COM>
To: <jdo-dev@db.apache.org>
Cc: "JDO Expert Group" <jdo-experts-ext@Sun.COM>
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!
>
>



Mime
View raw message