title: How do i create this many-to-one mapping using JPA?
body: <p>I'd like to achieve the following schema:</p>
  
  <blockquote>
    <p><strong>Table A:</strong> <br/>
    <code>a_id</code> <br />
    (other columns)</p>
  </blockquote>
  
  <hr>
  
  <blockquote>
    <p><strong>Table B:</strong><br />
    <code>b_id</code><br />
    (other columns)</p>
  </blockquote>
  
  <hr>
  
  <blockquote>
    <p><strong>Table C:</strong><br />
    <code>c_id</code><br />
    (other columns)</p>
  </blockquote>
  
  <hr>
  
  <blockquote>
    <p><strong>Table D:</strong><br />
    <code>a_id_fk</code><br />
    <code>b_id_fk</code><br />
    <code>c_id_fk</code></p>
  </blockquote>
  
  <p>I would like to know how to create entity D. All the keys <code>a_id_fk</code>, <code>b_id_fk</code> and <code>c_id_fk</code> in Table D form a composite primary key.</p>
  
  <p>Thanks</p>