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: Annotations for embedded Key, Value, and Element
Date Wed, 18 Jul 2007 16:27:37 GMT
Hi Andy,

On Jul 18, 2007, at 12:46 AM, Andy Jefferson wrote:

>> The only thing needed is the Embedded[] embedded() default {} element
>> of @Key, @Value, and @Element, replacing the String embedded() that I
>> think has no use here.
>
> @Element "embedded" (String) has the same use as
> <collection embedded-element="...">

Yes, this is part of the separation of jdo from orm metadata. It  
might make sense to preserve the name of the attributes and put the  
corresponding annotation elements embeddedElement, embeddedKey, and  
embeddedValue  into @Field and @Property and then use embedded() for  
mapping.

Have you looked at how to do mapping of embedded element, key, and  
value with the current annotations? I might have missed something  
obvious...

Thanks,

Craig
>
>
> -- 
> 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!


Mime
View raw message