title: Filtering JPA eager fetched entites
body: <p>I have a bunch of JPA entites (witch Hibernate) called Nodes, with the following fields:</p>
  
  <ul>
  <li>NodeId</li>
  <li>ParentNodeId</li>
  <li>Active</li>
  </ul>
  
  <p>The ParentNodeId refers to another Node, so I have a nice tree structure.</p>
  
  <p>I've set the fetch type of Node to eager, so I get all the elements in the tree.</p>
  
  <p>What I would like to do, is to filter the tree by <em>Active</em> property, that is get only those nodes, which has its <em>Active</em> field set to 1.</p>
  
  <p>Is there an easy way to do this?</p>
  
  <p>Thank,
  krisy</p>