title: JPQL to query entity connected to another by @OneToMany
body: <p>Has:</p>
  
  <pre><code>class Container {
  
      @Id
      @Column(name="id")
      protected long id;
  
      @OneToMany
      @JoinColumn(name="container_id", nullable=false)
      protected Collection&lt;Content&gt; contents = new ArrayList&lt;Content&gt;();
  
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>class Content {
  
      @Id
      @Column(name="id")
      protected long id;
  
      @Column(name="link_id")
      protected long linkId;
  
  }
  </code></pre>
  
  <p>What JPQL query will get Content entities that are in Container with certain id and with certain linkId?</p>