No danger in changing superclasses to true. The real issue is: does the
user really want to inherit the create methods? I mean say B derives
from A. You define create in A, now if superclasses="true" then no way
to tell it not to have that create method in B. This scenario can happen
in concrete bean deriving from another concrete bean. In
concrete->abstract scenario there's no problem, you really want to
inherit that create method. In concrete->concrete scenario you don't,
probably.

I believe it's better to clearly state that concrete->concrete is
considered a bad practice (we already have some bugs in this regard),
and make sueprclasses="true" for all the cases, consistently. Thoughts?

Ara.

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:xdoclet-user-
> [EMAIL PROTECTED]] On Behalf Of Ferran Puig
> Sent: Friday, June 07, 2002 5:18 PM
> To: [EMAIL PROTECTED]
> Subject: RE: [Xdoclet-user] How do I generate entity local interface
for
> ancestor methods
> 
> 
>  I've been looking in the template of the Home interface generation
> (home.j).
> There's a fragment like this which generates the create methods:
> 
>   <XDtEjbSession:ifNotStatelessSession>
>    <XDtMethod:forAllMethods>
>     <XDtEjbHome:ifIsCreateMethod superclasses="false">
> <XDtMethod:methodComment indent="3"/>
>    public <XDtEjbIntf:componentInterface type="remote"/>
> <XDtEjbIntf:interfaceMethodName/>(<XDtParameter:parameterList/>)
> <XDtMethod:exceptionList
> append="java.rmi.RemoteException,javax.ejb.CreateException"/>;
>     </XDtEjbHome:ifIsCreateMethod>
>    </XDtMethod:forAllMethods>
>   </XDtEjbSession:ifNotStatelessSession>
> 
>  IMHO, just changing the value of the attribute superclasses from
false to
> true
> should solve my problem (since it would traverse superclasses to look
for
> create methods), but I'm not sure.
> 
>  Can anyone tell me? And, if that's a solution, is there any danger in
> using
> this modified template not just for those beans but for all the beans
of
> my
> app? I suppose that there's a reason to set the value of superclasses
to
> false...
> 
>   Thanks.
>   Ferran
> 
> _______________________________________________________________
> Copa del Mundo de la FIFA 2002
> El �nico lugar de Internet con v�deos de los 64 partidos.
> �Ap�ntante ya! en http://fifaworldcup.yahoo.com/fc/es/
> 
> _______________________________________________________________
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
> 
> _______________________________________________
> Xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to