Assuming I have the following:
A* <-----> *B
and C has also has a many-to-many relationship to the association of A and B.
In my situation, C is dependent on A and B. From a relational perspective, I have the following two associative tables:
Table AB with a_id, b_id and table ABC with a_id, b_id and c_id. In table ABC, a_id and b_id are foreign keys that reference primary key a_id and b_id in table AB. Also, the primary key for table ABC is composite: a_id, b_id and c_id.
How do I map that in hibernate?
|