Hello everybody,
I'm new to Hibernate and currently I'm testing various inheritance strategies.
With "table per concrete class with implicit polymorphism" I keep getting an exception "[MyAbstractSuperclass] is not mapped" when performing an HQL query on the abstract superclass.
Do I really have to map that abstract superclass? The book is not very helpful at this point as it advises to implement the subclasses in a normal way because Hibernate "still knows about the superclass". So I included each inherited field in the mapping for the subclasses and hoped it would work.
Please note I'm using Hibernate native mappings with XML files.
Any suggestions appreciated.
Regards,
Thomas
Last edited by thweiss on Tue Feb 09, 2010 11:03 pm, edited 1 time in total.
|