title: Hibernate @Filter on @OneToMany relationship has no effect
body: <p>i'm using Hibernate to map my entities and QueryDSL for the queries. My entity Sector has many Familia and I want to filter only those that FMODIFICACION column is null. This is my Sector entity:</p>
  
  <pre><code>@FilterDef(name = "FAMILIA_FILTRO_FECHA")
  @Entity
  public class Sector {
      ...
      private List&lt;Familia&gt; familiasList;
  
      @OneToMany(mappedBy = "sector")
      @Filter(name = "FAMILIA_FILTRO_FECHA", condition = "FMODIFICACION IS NULL")
      public List&lt;Familia&gt; getFamiliasList() {
          return familiasList;
      }
      ...
  }
  </code></pre>
  
  <p>And this is the query (using QueryDSL):</p>
  
  <pre><code>public List&lt;Sector&gt; getSectores() {
  
      //enable filter
      Session session = entityManager.unwrap(Session.class);
      Filter filtroFamilia = session.enableFilter("FAMILIA_FILTRO_FECHA");
  
      //perform query
      QSector qSector = QSector.sector;
      JPAQuery query = new JPAQuery(entityManager);
      List&lt;Sector&gt; sectores = query.from(qSector).list(qSector);
  
      // disable filter
      session.disableFIlter("FAMILIA_FILTRO_FECHA");
      return sectores;
  }
  </code></pre>
  
  <p>But this query is retrieving all the Familia. What am I doing wrong? </p>
  
  <p>Thanks!</p>