> > After some messing around there seems to be a funamental design
problem
> > when using EJB 2.0,Entity beans and CMP. Xdoclet generates a CMP
class
> > from the orginal Bean that you describe and puts the new name {0}CMP
> > into the ejb-name. The problem is that the getter and setter methods
> > need to be declared abstract which there are not in the CMP . This
also
> > seems to break the whole getData and setData methods.
>
> yep - we're still midway between 1.1 and 2.0. at the moment I'm
testing
> against jboss 2.4 final, rather than cvs... but there's obviously
going to
> be
> some calls going to be made. The two options for this are:
> a) use a different template depending on whether the spec is 1.1 or
2.0
> b) use "if spec version==" tests throughout the template where
> appropriate.
> I suppose which one we do depends on how many more differences we'd
need
> between 1.1 and 2.0. Home methods are another issue that come to
mind,
> but
> they can quite cleanly be handled by option (b).
Yup, another semi-empty template without field declarations. Anyone
interested in implementing it?
Anyway, maybe we can simply not generate any derived class at all? The
optimistic locking feature will be lost, but some container support it
(though many others don't). Maybe making it configurable is the right
solution?
Also I think the generated blablSession class for session beans is not
needed, but if you want to use the custom-session.j capability you can
put a generate-subclass="true" in your bean.
> > I would like to start to do the relationship stuff ..has anyone
spec'd
> > what the attributes names should be or should I just use the names
that
> > are supplied by the ejb-jar_2_0.dtd?
>
> I'm not really across the relationship stuff myself, and I dont think
its
> been spec'd out yet (Ara?) so I think you're free to dive in. Be good
to
> get
> on the xdoclet-devel list, and continue the discussion there (o:
Great! Implement it and share it with us. Highly appreciated.
Three things we don't have for full EJB 2 support:
- relations
- EJBQL query
- don't generate cmp subclass with declared fields
Ara.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/xdoclet-devel