title: Why i am getting column not found error when doing bi directional mapping in jpa?
body: <p>I have two tables name Author(author_name, book_name, and version) as the primary key and Book with (book_name, version) as the primary key, i am trying to do bidirectional mapping in the following way</p>
  <p><strong>Author Table</strong></p>
  <pre class="lang-java prettyprint-override"><code>@ManyToOne(cascade = CascadeType.ALL)
  @JoinColumns(value = {
      @JoinColumn(name = &quot;book_name&quot;, nullable = false, insertable = false, updatable = false),
      @JoinColumn(name = &quot;version&quot;, nullable = false, insertable = false, updatable = false)
      })
  private Book courtbook;
  </code></pre>
  <p><strong>Book Table</strong></p>
  <pre class="lang-java prettyprint-override"><code>@OneToMany
              @JoinColumns(value = { @JoinColumn(name = &quot;book_name&quot;, nullable = false, insertable = 
   false, updatable = false),
              @JoinColumn(name = &quot;version&quot;, nullable = false, insertable = false, updatable = false), 
              @JoinColumn(name =&quot;author_name&quot;, nullable = false, insertable = false, updatable = false)
      })
      private Author author;
  </code></pre>
  <p>when i am trying to fetch data i am getting the following error
  ERROR: column book0_.author_author_name does not exist</p>