posted 13 years ago
Hi All,
We have a table
A(a_id, name) where a_id is primary key
B(b_id, name) where b_id is primary key
C(a_id, b_id) where a_id & b_id are composite key and foreign key to table 'A' & 'B'
We have proper mapping for table 'A' & 'B' in hibernate 3 using annotation.
But we are not sure how to create entity class for table 'C', since it does not have any primary key.
We wanted to know how to map composite foreign key.
Can any one please help us how to create the entity class for table 'C'