title: Many-to-Many query jpql
body: <p>I have the followed trouble.</p>
  
  <p>There is an entity Distributor who is connected with the ManyToMany relationship to entity town:</p>
  
  <pre><code>@Entity
  public class Distributor{
  
     @ManyToMany
     @JoinTable( name = "GS_DISTRIBUTOR_TOWN",
             joinColumns = @JoinColumn(name = "CD_DISTRIBUTOR"),
             inverseJoinColumns = @JoinColumn(name = "CD_TOWN") )
     private List&lt;Town&gt; towns;
  
     ....
  }
  </code></pre>
  
  <p>Then the entity town is also in relation with District</p>
  
  <pre><code>@Entity
  public class Town{
  
     @ManyToMany(mappedBy="towns")
     private List&lt;Distributor&gt; distributors;
  
     @ManyToOne
     private District district;
  
     ....
  }
  </code></pre>
  
  <p>Now i have to filter(with jpql) all distributor who are in a district.
  How can i do?</p>