title: @JoinTable to join three tables
body: <p>How can I use <code>@JoinTable</code> to join three tables?</p>
  
  <p>I have three tables:</p>
  
  <pre><code>user:
  id, name 
  
  post:
  id, date
  
  company:
  id, name
  </code></pre>
  
  <p>I want to create a new table with the following columns:</p>
  
  <pre><code>user_id, post_id, company_id.
  </code></pre>
  
  <p>I used:</p>
  
  <pre><code>@JoinTable(name = "new_table", joinColumns = @JoinColumn(name = "user_id"),
      inverseJoinColumns = @JoinColumn(name = "post_id"))
  </code></pre>
  
  <p>However, I am not sure how to add the third column.</p>