Hi all,
I'm completely stuck...
I have two classes A and B. A has a composite primary key consisting of p1 and p2 and additional attributes p3 and p4. B extends A, introduces two additional attributes p5 and p6, which p5 should also be an additional key.
Because B extends A, at least the fields p3 and p4 will not have to be included in the table for B because they are already in its superclasses table (which can be found via the foreign key (p1,p2).
If I now want to saveOrUpdate B, i want the corresponding A-fields (in the A-table) also to be updated.
But how will I have to map this in the hbm ?
An example could be:
You have objects containing data and a second table that contains the text in multiple languages for the objects.
Br, Markus
|