title: Hibernate: does filter on parent entity implicitly filters child entity?
body: <p>Suppose there are two entities EntityA and EntityB. 
  Two tables are defined for both entities.
  EntityB is child entity of EntityA.
  Now in java pojos using hibernate annotation, i have defined two classes corresponding to tables EntityA and EntityB as below.</p>
  
  <pre><code>    @FilterDef(name = "myfilter", parameters = { @ParamDef(name = "year", type = "int") }, defaultCondition = ":year = year")
  
      public class EntityA
  
      {
  
         @OneToMany(mappedBy="EntityA")
         List&lt;EntityB&gt; getEntityBList()
         { 
         }
  
      } 
  
  
      public class EntityB
      {
  
        @ManyToOne
        @joincolumn(name="entityA_id") 
        EntityA getEntityA()
        {
        }
  
      }
  </code></pre>
  
  <p>Since I have got filter on EntityA. Is it implicit that EntityB will have objects loaded only which correspond to filtered objects of EntityA keeping in mind parent child relationship or do need to explicitly put filter on EntityB ?</p>
  
  <p>Example if EntityA is filtered such that objects corresponding to year 2010 is loaded only. I want that loaded object of EntityB should be only which are child of EntityA objects corresponding to year 2010 only.</p>