Hi there,
I want to subclass a hibernate entity class that is defined in a different project that is loaded as dependency into our web application. The parent class is hbm.xml-defined, the new subclass could be hbm.xml-defined, too, but I would prefer annotations. The subclass is not adding properties to the parent but just adding new 1:m relationships that are not available for the parent class, so I thought about a single table inheritance. There are some new annotation-configured entities around.
The project is Spring-Managed, and the dependency jar file provides us with the context and hibernate config files for the base structures. We plan an extension to that. What and how must I define the inheritance in this case under the condition that I can't modify the hbm.xml file of the dependency jar?
Thank you! Kai
|