I have two tables as follows:
table1: col1, col2, col3, col4
table2: c1, c2, c3, c4
in table 1, col1 and col2 are primary keys (composite key). in table 2, c1 and c2 are foreign keys referencing the foreign key in table1.
how should I define this mapping in my hibernate pojos ?