db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michelle Caisse <Michelle.Cai...@Sun.COM>
Subject Re: [VOTE] remove @Field and @Property; add @Persistent
Date Wed, 25 Jul 2007 17:18:59 GMT
+1

-- Michelle

Craig L Russell wrote:

> +1
>
> Recently we updated the change list:
>
> Add Persistent[] members() default {} to @PersistenceCapable
>
> Added back PersistenceModifier persistenceModifier() to @Persistent
>
> If others agree, please vote.
>
> Thanks,
>
> Craig
>
> On Jul 20, 2007, at 3:31 PM, Craig L Russell wrote:
>
>> 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!
>>
>
> 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