• Post Reply Bookmark Topic Watch Topic
  • New Topic

Can I establish CMRs at run-time ?  RSS feed

 
Sathya Sekar
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Say I have an Employee bean who has many-many relationship with Department bean as well as many-many relationship with a Location bean. There is no processing in the Employee bean - it is just going to return Collection of all the related beans. There might be more such relations coming up in the future.

Is it possible for me to have just a getCollection() method which could dynamically get related to another bean and return a Collection of all the related bean objects ? This might depend on the caller's requirement or some configuration.

Any inputs ?

Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!