title: JPQL for Entries Many To Many relationship
body: <p>I have table with many to many relationship:</p>
  
  <pre><code>@ManyToMany
  @JoinTable(name = "book_category",joinColumns = @JoinColumn(name = "book_id"),
                             inverseJoinColumns = @JoinColumn(name = "category_id"))
  private List&lt;Category&gt; categories;
  </code></pre>
  
  <p>What is the fastest method to find all <code>Books</code> which have selected category(by id).</p>