I have a hierachy of classes and one base class, say Base. What i need is to have the possibility to give mappings to the field of this class to some columns (declare some associations) BUT not map this class to any table (because it's abstract and i have no reason to have a table for it, which will cause not needed fetching, single id for all subclasses and so on).
The solution i see is to simply copy-paste the mapping for the desired fields in each subclass of my class, but maybe there is more elegant faster and convinient solution (imagine there are 10 or more subclasses in the hierachy)
Any help will be appreciated.
|