title: Hibernate Criteria aPI Multiselect
body: <p>If I use Hibernate Criteria API like:</p>
  
  <pre><code>CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();
  CriteriaQuery criteriaQuery = criteriaBuilder.createQuery();
  Root&lt;OneEntity&gt; entityOneRoot = criteriaQuery.from(OneEntity.class);
  Root&lt;TwoEntity&gt; entityTwoRoot = criteriaQuery.from(TwoEntity.class);
  criteriaQuery.multiselect(OneEntity, TwoEntity);
  </code></pre>
  
  <p>Do I need to use EQUAL-restriction (as ON-restriction in SQL) for equaling IDs between both tables (entities)? Because of Cartesian product of both tables?</p>
  
  <pre><code>criteriaQuery.where(criteriaBuilder.equal(OneEntity.get("fk_id"), TwoEntity.get("id")));
  </code></pre>
  
  <p>I mean... In SQL using join we need to use on-clausule like:</p>
  
  <pre><code>select * from table_1 t1, table_2 t2 where t1.t2_id=t2.t1_id;
  </code></pre>
  
  <p>But I can't find information about it in API Criteria.</p>