Hi all
I have the following situation
A database (no write access) has a table A and a table B. Almost every field is similar.
Modelling the java classes i ignored this and as everything seemed the same I've taken everything in the same class X. X has 2 sons, Y and Z. Y should map (along with all inherited attributes from X) to A, and Z should map to B the same way.
How can I do this kind of mapping? Note I'm mapping the table-per-class way, using the <class> in the X mapping file and <subclass> in both Y and Z mapping files, using the extends attribute.
Thanks in advance.
|