I use it this way all the time and everything works fine. The trick is that you can have arbitrary level depth of hierarchy, but as soon as you declared a class (bean) to be non-abstract (i.e. you actually want a bean being generated for the class), you can't inherit any more. In fact I have two parallel trees --  one of beans and one of corresponding data objects.

Hope that helps...

Mike

--__--__--

Message: 2
From: "Ara Abrahamian" <[EMAIL PROTECTED]>
To: "'Ferran Puig'" <[EMAIL PROTECTED]>,
<[EMAIL PROTECTED]>
Subject: RE: [Xdoclet-user] How do I generate entity local interface for ancestor methods
Date: Fri, 7 Jun 2002 16:03:35 +0430

While I was developing this inheritance feature I thought ejbCreate is
one of those un-inheritable methods, because of the return type and it
seemed to me like putting a static getInstance method in a base class
and trying to override that static method :-) But anyway, we can make it
smarter and handle this case too.

Ara.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:xdoclet-user-
[EMAIL PROTECTED]] On Behalf Of Ferran Puig
Sent: Friday, June 07, 2002 3:43 PM
To: [EMAIL PROTECTED]
Subject: RE: [Xdoclet-user] How do I generate entity local interface
for
ancestor methods
=20
=20
We're having a similar problem.
=20
we have a group of Beans which inherit from a generic bean which has
the
create method, because the create method has the same signature for
all
Beans.
=20
We want to generate the Home interface, but the generated interface
hasn't
the create method (I suppose that is due to the fact that the
signature of
the
create method in the home interface should be different for each
Bean).
=20
We've tried to put the @ejb:create-method in the parent of the beans,
but
it
doen't work. Any hint about it?
=20
Thanks in advance.
Ferran.
=20
=20
_______________________________________________________________



Reply via email to