Hibernate version:
3.1.1
In the following forum topic:
http://forum.hibernate.org/viewtopic.php?t=950827, giulio.vezzelli asked about how to accomplish substitution of a base class by a subclass using table-per-class-hierarchy mapping definitions. I'm looking to do essentially the same thing.
I'd like to define a <class> mapping in my core product, then allow customizations of my product to define a <subclass> mapping that extends and essentially replaces the base mapping to the same table. At no time should the base class ever be instantiated if there's a subclass defined with the same discriminator value.
I'm using Hibernate 3.x, and I'm a relative newbie at it, but I've searched the docs and can't come up with anything obvious.