07-01-07 12:11 AM
Hi Craig,
> This might be controversial, but my Annotations Feature Request #3 is
> to allow the annotation to declare which element is the default if
> there is only one value specified. In this case, it would be "name".
I was thinking of the same thing :-)
Can't see why that should be controversial (and would only require an extra=
=20
keyword allowing on the definition of the annotation to define which elemen=
t=20
is the default). Leaving out the ability (in JDK1.5) to have a null element=
=20
default value is far more controversial IMHO, or not allowing inherited=20
annotations, or not allowing cyclic annotations, or ...
>
> Could you possibly expand more on this?
OK, in the XML metadata some elements have a String shortcut for something=
=20
that could be specified in a sub-element, but allows the shortcut where the=
=20
user just wants the primary thing ... like name of the column rather than=20
adding <column>. Maybe I was thinking there were more than there actually=20
are. The ones I now see having a quick compare of the DTD and the annotatio=
ns=20
are :-
<field> has "delete-action", yet no "delete-action" annotation element.
<field> has "indexed", yet no "indexed" annotation element.
<field> has "unique", yet no "unique" annotation element.
=20[vbcol=seagreen]
[vbcol=seagreen]
> Ah, deadlines. I'll see how much I can do in the next few days to wrap=20
> things up.=20
Thx
=2D-=20
Andy =A0(Java Persistent Objects - http://www.jpox.org)
[ Post a follow-up to this message ]
|