Hi,
I had a question in mind...
suppose my entire framework is working and using an classes by name SuperA , SuperB, SuperC ... SuperZ (assume they have on 'id' key field, there is no hibernate mapping file for these classes).
Now I add a jar '1.jar' which extends Super[A-Z] and has class names like SubA1 , SubB1 , SubC1 ... SubZ1. These classes have hbm files with table mapping into some db. These can have its own set of attributes.
But suppose now I create only more child hierarchy and try to replace '1.jar' with '2.jar' which extends Super[A-Z] and has class names like SubA2 , SubB2, SubC2 ... SubZ2. These classes also have their hbm files and map to some table in some db.
Now what I am expecting is ...
sample code :
Code:
SuperA implementation = getA();
juggleA(implementation);
session.save(implementation);
Now depending on what implementation is returned by getA() ... I would want hibernate to insert 'implementation' object into its respective table.
Is that possible .. ??