I have to work with Hibernate and I am not very sure how to solve this problem, I have 2 tables with a 1..n relationship like this:
-------
TABLE_A
-------
col_A1 (pk)
col_A2 (pk)
[other fields]
-------
TABLE_B
-------
col_B1 (pk) (fk TABLE_A.col_A1)
col_B2 (pk)
col_B3 (fk TABLE_A.col_A2)
[other fields]
How can I manage this with Hibernate?
I do not have any idea how to declare a foreign key that would contain a part of primary key.
My database schema is generated from the Hibernate model.