• Post Reply Bookmark Topic Watch Topic
  • New Topic

Entity beans - EJB 2.1

 
Ashish Sarin
author
Ranch Hand
Posts: 444
10
  • 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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!