posted 15 years ago
Hi,
If I have an entity bean A, B and C and I want to design my application such that the entity beans B and C implement a business interface X ( a case of interface inheritance). In this case:
Can entity bean A have an object of type X ( the interface implemented by B and C beans ) and at runtime an instance of B or C is created and assigned to the type X variable in entity bean A and when a method is invoked on A then its passed to the entity bean referenced by X ? Whats the best way to model this type of scenario using entity beans ?
thanks
Ashish