title: Hibernate Projection for mapped properties
body: <p>In Hibernate while projecting :</p>
  
  <pre><code> Criteria criteria = session.createCriteria(XYZ.class)
                      .add(Restrictions.eq("XYDId", 1)).add(Restrictions.eq("active", Boolean.TRUE));
  criteria.setProjection(Projections.property("abc.id").as("id"));
              criteria.setProjection(Projections.property("abc.timezoneKey").as("TIMEZONEKEY"));
              criteria.setResultTransformer(Transformers.aliasToBean(abc.class));
  </code></pre>
  
  <p>throwing an exception</p>
  
  <p><code>could not resolve property: abc.timezoneKey of: com.locaid.gfe.common.entities.XYZ</code> </p>
  
  <p>although In XYZ entity abc is present as proerty and in abc timezoneKey is present as a property. Can anyone help me in getting what I am lacking.</p>