On Jul 27, 2005, at 5:00 PM, Nicholas Irving wrote:
I have something working with the plugin, but it only seems to have
limited support. The important thing I have found is adding
* @openejb
to my Bean source. Working on it though and adding more support as
I believe the document states it only supports Session and not
Entity, also no support for OpenEjb2.0.
This is really strange because the cmp support in 1.0 and below is
through castor, which does have a full suite of xdoclet tags. It
seems the xdoclet cmp support would have been fairly easy to introduce.
Regardless, the option does exist to generate the openejb-jar.xml
once and just keep reusing it. You really only need to change it if
you add/remove beans, change class names, add/remove data sources, or
add/remove finder methods.
In the case of finder methods, the actual data in the openejb-jar.xml
is an OQL query string that can't be generated for you as the
reflection API only shows us findByFoo(String,String,int) and not
something that could be used to hint the database field names like
findByFoo(String firstName, String lastName, int age).
If that data was in xdoclet tags or annotations, we could generate
the query string for most people.
Anyway, if you get the urge to improve the xdoclet support, checkout
these links:
http://www.openejb.org/faq_openejb-jar.html
http://www.openejb.org/faq_cmp.html#finders
-David