Hi, it's possible to save a unique class in diferent tables?¿
In my case i need to save a same class, called Message, in diferent tables. If the Object Message is processed bya method of the class 1 it must be saved in the table "class1" if it's processed by the class 2 save it in the table "class2" ang go on.
I think to make diferent hbm file for each "processing class" and copying the attributes from the class Message to the class that process the data, but i think that's so dirty and it must be a cleanest way. Any idea?¿
|