title: How can I filter my result set by a field on the Many side of a @OneToMany relation on Ebean?
body: <p>I have my models setup like the following:</p>
  
  <pre><code>@Entity
  public class A extends Model {
  
    @Id
    @Column(name = "ID")
    private Long id;
  
    @OneToMany
    List&lt;B&gt; bees;
  }
  
  @Entity
  public class B extends Model {
  
    @Column{name = "STING"}
    private String sting;
  
    @ManyToOne
    @Column{name = "A_ID"}
    A aces;
  }
  </code></pre>
  
  <p>How can I get the A which have B with reference to it with sting = 'READY'?</p>
  
  <p>In sql it would be something like SELECT A.* FROM A, B WHERE A.ID = B.A_ID AND B.STING = 'READY'.</p>
  
  <p>I'm using Ebean within Play Framework.</p>