title: Conditions for JPA OneToMany collection
body: <p>If I have this entity:</p>
  
  <pre><code>@Entity
  class Pet {
  
      @Id
      long id;
  
      public enum State { ALIVE, DEAD }
  
      @Enumerated(EnumType.STRING)
      @...
      State state;
  
      @...
      String name;
  
  }
  </code></pre>
  
  <p>Can I create a mapping like this:</p>
  
  <pre><code>@Entity
  class Owner {
  
      @OneToMany(condition="state = ALIVE") // or something like that
      Set&lt;Pet&gt; alivePets;
  
      @OneToMany(condition="state = DEAD")
      Set&lt;Pet&gt; deadPets;
  
  }
  </code></pre>