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.