It has been suggested on this forum to use the table-per-subclass (TPS) strategy in my application design (see
http://forum.hibernate.org/viewtopic.ph ... highlight=).
I have several questions about this strategy, for which I didn't find the answers in the Hibernate book:
1. TPS strategy performance may be unacceptable if there are multiple subclasses. However, sometimes the superclass table may contain a field, which tells you what subclass to use. Is it possible to configure Hibernate in such a way that it joins the superclass table with specific subclass table(s) instead of joining ALL of them with the superclass table?
2. Is it possible to declare the subclass table in a separate .hbm.cfg file and then reference it from inside the superclass mapping file? It is rather inconvenient having to put all subclasses or joined-subclasses mappings inside the superclass mapping file itself.
Thanks.
Alec