title: Criteria Builder Create new Object In Select Statement
body: <p>I was wondering if it's possible to create such query like :</p>
  
  <pre><code>em.createQuery(
          "SELECT NEW EmpMenu(p.name, p.department.name) "
              + "FROM Project p ").getResultList();
  </code></pre>
  
  <p>also is it possible to do it via Specification:</p>
  
  <pre><code>public Predicate toPredicate(Root&lt;T&gt; root, CriteriaQuery&lt;?&gt; query,
          CriteriaBuilder cb) {
  
  
      return ???;
  }
  </code></pre>
  
  <p>Thanks in advance!</p>