Question from a colleague:
> > > Can anyone point me to an example of a mapping file which illustrates how to
> > > model a collection of instances of an abstract class?
> > >
> > > The excellent article on the visitor pattern discusses the java side in detail,
> > > see
http://www.hibernate.org/280.html, but I would like to know what the
> > > mapping of a collection of polymorphic objects would look like.
> > > For example, if I had a class called Congress I would like to add an attribute
> > > 'members' which contains a list of Politian objects. In the model I don't
> > > care whether they are Democrat, Republic or just Lazy Politiions. That is a
> > > run time issue. I will probably be using the one relation per concrete class
> > > approach for my inheritance model. So I need a way to tell Hibernate how to
> > > gather selections from several differnent tables into a single list that can
> > > be processed by applying abstract methods.
> > >
> > > If the answer is the manual please just point me to the relevant page.
Regards,