• Post Reply Bookmark Topic Watch Topic
  • New Topic

Entity beans - EJB 2.1  RSS feed

 
Ashish Sarin
author
Ranch Hand
Posts: 451
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!