Scott,
> I'm ready to try to write plugin for EJB 3.0 annotations such as
> @Entity, @Table, etc.
I suggest you to take a look at the Hyperjaxb2 project. Hyperjaxb
generates OR mapping for Hibernate 3 and already solves many of the OR
mapping problems.
Few hints that you may find helpful.
From OR point of view, there is six types of fields in schema-derived
classes:
* primitive;
* enum;
* dom
* wildcard;
* complex;
* heterogeneous.
Fields can be single or collections.
This basically means that you need to know how to annotate all the 12
field types. Apart from fields, you might need to annotate
classes/subclasses, identifiers and version fields.
Another tricky point is customization - like if you would like to let
developers customize table/column names.
I have planned EJB3/Hibernate3 annotations support in Hyperjaxb3. I
think it would much more effective to cooperate. Let me know if you're
interested.
Bye.
/lexi