db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: [jira] Commented: (JDO-510) Remove @Field and @Property and replace them with @Persistent
Date Thu, 26 Jul 2007 20:20:13 GMT
Hi Andy,

On Jul 26, 2007, at 12:32 PM, Andy Jefferson wrote:

> Hi Craig,
>> The issue here is if both type and types are specified, which one
>> wins? Since types can be both single or multiple types, I think
>> there's less opportunity for error if there is only one element, and
>> types does it. And it is evocative of the notion that even though you
>> specified a type on your field/property (or not, for unadorned
>> collection/map types), there are more constraints on the actual types
>> that you can put into it.
> No problem with just having the "types" element for me ... that's  
> what I had
> originally :-). What the user types
> @Element(types=MyElement.class)
> compared to the single form
> @Element(type=MyElement.class)
> is so similar I didn't see the point of the single form variant  
> and, of
> course, it also allows multiple values for implementations that  
> support it.
> Just want to avoid that option being included and then removed, and  
> then back
> in again.

Yeah, sorry about that.

>> Meantime, I'll check in the change from boundTypes to types to  
>> keep things
>> moving.
> Thx.
> JPOX CVS now builds with latest Apache JDO jdo2-api.jar
> (@Persistent,@Element,@Key,@Value "boundTypes" -> "types", and also
> @Element,@Key,@Value "embedded" change). I've started the "nightly"  
> build
> running so there are jars if anyone wants to run with it.


> -- 
> Andy  (Java Persistent Objects - http://www.jpox.org)

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!

View raw message