Hi Ara,

this seems a little too radical to me: When I say "generate=false", I am
afraid that XDoclet will exclude this bean from the deployment descriptor.
And: in the case of an entity bean, it will not generate any data object,
right? I would have to mark CustomerServiceBeanImpl with @ejb:bean and all
the rest of CustomerServiceBean's metadata as well, am I right?

The generator generates the Impl class only to separate generated code from
hand-written code. It generates the business methods from the UML model as
*abstract* methodes in *Bean.java. The develper has to implement them as
*concrete* methods in *BeanImpl.java. I designed it that way because
otherwise hand-written code in *Bean.java would be overwritten when the
generator ran again.

So, how can I do it correctly?

Regards...
Matthias

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ara
> Abrahamian
> Sent: Sunday, July 14, 2002 2:44 PM
> To: 'Matthias Bohlen'; [EMAIL PROTECTED]
> Subject: RE: [Xdoclet-user] Different bean class names
>
>
> /**
>  * @ejb:bean .... generate="false"
> */
> public abstract Class CustomerServiceBean
> {
> }
>
> Btw, why are you doing something like that? Why is an impl
> class needed?
>
> Ara.
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:xdoclet-user-
> > [EMAIL PROTECTED]] On Behalf Of Matthias Bohlen
> > Sent: Sunday, July 14, 2002 3:27 PM
> > To: [EMAIL PROTECTED]
> > Subject: [Xdoclet-user] Different bean class names
> >
> > Hi,
> >
> > a question concerning bean class names:
> >
> > The UML2EJB generator uses XDoclet in a very special way: the bean
> class
> > (containing the XDoclet tags) is not the leaf class in the class
> hierarchy
> > but UML2EJB always generates an implementation class that
> derives from
> the
> > bean class:
> >
> > class CustomerServiceBeanImpl extends CustomerServiceBean
> > {
> >    // some implementation code goes here...
> > }
> >
> > Now, XDoclet generates an ejb-jar deployment descriptor
> using the bean
> > class
> > name:
> > <ejb-class>de.mbohlen.somepackage.CustomerServiceBean</ejb-class>
> >
> > I want XDoclet to use the implementation class name instead:
> >
> <ejb-class>de.mbohlen.somepackage.CustomerServiceBeanImpl</ejb-class>
> >
> > Is there any parameter that would tell XDoclet to change the name in
> the
> > deployment descriptor, keeping all other settings intact?
> >
> > Best regards...
> > Matthias
> >
> > ----
> >
> > Matthias Bohlen
> > Consulting that helps project teams to succeed...
> >
> > Web:
> > http://www.mbohlen.de/
> >
> > Snail:
> > Luise-Albertz-Str. 25
> > D-53340 Meckenheim
> > Germany
> >
> > Phone: +49 (170) 772 8545
> > Fax: +49 (2225) / 945189
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Xdoclet-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to