kogori wrote:
I have a legacy table that resembles table-per-hierarchy. I can map different subclasses to that table using @Inheritance(strategy = InheritanceType.SINGLE_TABLE) and @DiscriminatorColumn.
However I want to map one-to-many association to this table but only return a list of a specific class.
Is this possible?
We have similar needs.
So far we are going to have protected collection Pets which is then used as a source for poulating transient collections Dogs and Cats.
May be there is a better, more 'hibernated' solution.