title: Restrict selected fields using Hibernate Criteria projection
body: <p>I have an HQL query, but it has many where conditions. So I decided to use Hibernate Criteria.</p>
  
  <p>Here is my query:</p>
  
  <pre><code>select distinct u.employee.id,u.employee.name,u.employee.address.phone from user u.
  </code></pre>
  
  <p>I tried it using the Criteria Project.property. But it gives an error. Is it possible to write Hibernate Criteria for this query?</p>