Paul Golick wrote:
Jean-Sebastien Delfino wrote in reply to Jim Marino:
I prefer the last one as well. I'm thinking that the annotation itself
should be part of the SDO project, how about
@org.apache.tuscany.sdo.SDOHelper?
How can annotation definitions be added in the SDO project without making
SDO dependent on Java 5?
The SDO portion of the source tree specifies Java 1.4 as its target
version.
Regards,
Paul Golick
I was thinking that we could have a subproject/module under the SDO
project with Java 5 extensions.
We've discussed the following so far:
- @org.apache.tuscany.sdo.SDOHelper
- @ annotations allowing an application developer to define SDOs using
Java interfaces and annotate them to specify the XSD metadata (we've not
really discussed the details, but I guess we'd need annotations to
specify the namespace, XML name, whether a property translates to an XSD
attribute or element, etc.)
... and this is going beyond the SDO spec and has not been discussed
yet, but I was also thinking that it would be nice to add support for
Java 5 generics at some point (<element ... type="Customer"
maxOccurs="unbounded"/> would translate to a List<Customer> instead of
just List).
All of these would require a Java 5 dependent SDO subproject. People
running on 1.4 would just not use the resulting JAR. Any opinions from
the people working on SDO?
--
Jean-Sebastien