Hi!
For me the following worked:
For the bean:
A implements EntityBean
B extends A
For the home interface:
A extends EJBHome
B extends EJBHome
each with its own create and find methods.
For the remote interface:
A extends EJBObject
B extends A
I am not sure whether I had to deploy A to get B deployed or not.
Anyone did this different ?
Be careful with the create methods.
1. Don't forget the appropriate postCreate methods.
2. they don't seem to behave the same way as constructors do. For a new
B object the A constructor gets called before the B constructor. The
create methods seem _not_ to be called in that schema. But I am not
absolutly sure about that. Wouldn't I be good to have the same schema
for the create methods as for constructors ?
Bye, Tobi
Bavo De Ridder wrote:
>
> Hi,
>
> What about entitybeans that inherit from other entitybeans, how do they
> work with container managed persistence?
>
> Suppose the following entitybeans and their attributes:
>
> A.name
> A.phone
>
> B extends A
>
> B.gsm
>
> Will this behave as in regular java inheritance ?
>
> --
> Bavo De Ridder
>
> Project Manager
> Life :: The Linux Company
> Interleuvenlaan 15A
> 3001 Haasrode
> Belgium
> tel. +32 16 20 89 61
> fax. +32 16 20 79 73
> gsm. +32 476 24 58 36
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]