How do i map a relation between classes on different columns that the primary keys? [legacy db]
For instance, if I have class A with 2 prim keys: A1 and A2, and one normal column: A3.
Then I have class B with 1 prim key: B1 and a normal column: B2.
The relation ship is defined as: A2 = B1 and A3 = B2.
If I were to use a <bag> on class A:
Code:
 <bag>
    <key>
        <column name="B1" />
        <column name="B2" />
    </key>
  </bag>
It would ofcourse map A1 to B1 and A2 to B2.
This is not what I want.  :twisted: 
Any idea what I'm missing?? Shouldn't I be able to map relations on whather columns I choose?