Hello there,
I have a Table with 4 field F1,F2,F3,F4 (of type NUMBER).
Fields F1,F2,F3 constitute the primary key.
The objet oriented version of this table is represented with the Classes A and B (and B is a component of A).
- Class A hold the attributs int F1,int F2,int F4, B b
- Class B hold the attribut F3
I wasn't able to find a way to express that mapping :
<the-key>
A.F1 -> T.F1
A.F2 -> T.F2
A.B.F3 -> T.F3
</the-key>
<the-data>
A.F4 -> T.F4
</the-data>
I have tried a lot composite-id combinaisons without success.
It work only if I put proper getter and setter for field F3 arround b instance, but it implie modifying my model...
Have an idea ?
|