title: Hibernate Criteria equivalent for IN clause in Subqueries?
body: <p>I would like to translate a query like this one:</p>
  
  <pre><code>FROM Entity_1 obj
  WHERE obj IN (FROM Entity2) OR 
        obj IN (FROM Entity3)
  </code></pre>
  
  <p>To hibernate Criteria form, and the official <a href="http://docs.jboss.org/hibernate/core/3.3/reference/en/html/querycriteria.html#querycriteria-detachedqueries" rel="nofollow">documentation of Hibernate</a> is not enough because it doesn't say how to apply the <code>IN</code> statement.</p>
  
  <p>Any hint?</p>