FlukeFan wrote:
Hi Artie,
I think you'll need to add a subclass element to your mapping, just without any extra properties for the subclass.
Regards,
Richard
Thanks for your response, Richard.
One of the reasons we had used the single Employee class for persistance was so that we only had to configure that class in the database and hbm file.
We wanted to be able to hide the fact that the other Employee sub-classes would also be getting persisted VIA the Employee persistance, and didn't want to refer to each of these classes in the hbm file.
Is there another way of doing this?
Artie