Sorry to come back here without having read the whole thread, but I have
changed some stuffs in inheritence and I can't remember if it was on 1.1.2
or on 1.2.  AT least the home.j is not accurate to current CVS.

1. concrete extends abstract
If BBean extends ABean then BHome extends AHome
ejbCreate is in ABean only and in AHome only
It is working like that in 1.2
So you don't need this superclass="true".
At deployment time B have a create() in its home interface.  No problems.
Am I missing something ?

2. concrete extends concrete
Good Luck ;)
One of the only case really working here is BMP extends CMP and using the
same interfaces for both.

Vincent

----- Original Message -----
From: "Ara Abrahamian" <[EMAIL PROTECTED]>
To: "'Ferran Puig'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, June 07, 2002 3:37 PM
Subject: RE: [Xdoclet-user] How do I generate entity local interface for
ancestor methods


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




_______________________________________________________________

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