title: How to make Divide(column1/column2) in hibernate criteria projections
body: <p>I am new to Hibernate. I need to perform <code>select item.itemName, (item.Qty * item.Price)</code> as total Price from Item item' in Hibernate criteria query. i tried,</p>
  
  <pre><code>objCriteria = objSession.createCriteria(ItemVO.class, "IT")
  .setProjection(Projections.projectionList()
  .add(Projections.property("IT.name"), "itemName")
  .add(Projections.sqlProjection("(QTY * cost)", new Float[] {"TotalCost"}, ( new Type[] {Hibernate.Float}))))
  .setResultTransformer(Transformers.aliasToBean(ConsumableDTO.class));
  </code></pre>
  
  <p>But I need with HQL name instead of direct sql query column name. how to achieve it?</p>