I am trying to may an entity with two associated tables, but I am not sure about this mapping aspect.
Suppose that I have Entity P and its information is mapped to a table P and to another two tables (S1 and S2).
public class P{
atributeType p1;
atributeType p2;
atributeType s11;
atributeType s12;
atributeType s21;
atributeType s22;
.....
}
The idea is that attributes p1 and p2 go to Table P; attributes s11 and s12 go to S1; while attributes s21 and s22 go to S2. Additionally, tables S1 and S2 are related by a foreign key (PK of S2 is at the same time a foreign key to PK of S2).
Does it have sense?
Thank you very much for your help.