title: Hibernate foreign key as part of primary key
body: <p><br>
  I have to work with hibernate and not very sure how solve this problem, I've 2 table with a 1..n relationship like this:<br></p>
  
  <pre>
  -------
  TABLE_A
  -------
  first_id (pk)
  second_id (pk)
  [other fields]
  
  -------
  TABLE_B
  -------
  first_id (pk)(fk TABLE_A.first_id)
  second_id (pk)(fk TABLE_A.second_id)
  third_id (pk)
  [other fields]
  </pre>
  
  <p>How can I manage this with Hibernate???</p>
  
  <p>I don't have idea how to manage the primary key for the second table...</p>