title: Projection into List Field using Hibernate Criteria
body: <p>I have a POJO something like this</p>
  
  <pre><code>Class BillEntity {
        private int id;
        private double amount;
        private List&lt;Integer&gt; paymentIds;
  }
  </code></pre>
  
  <p>I want to fetch this Object from DB using Hibernate criteria, currently I am having code something like this</p>
  
  <pre><code>DetachedCriteria criteria = DetachedCriteria.forClass(Bill.class);
  //some Join aliases, which are working as expected
  criteria.setProjection(Projections.projectionList()
          .add(Projections.property("id") , "id")
          .add(Projections.property("amount") , "amount");
  
  criteria.setResultTransformer(new AliasToBeanResultTransformer(BillEntity.class));
  criteria.list();
  </code></pre>
  
  <p>The <code>id</code> and <code>amount</code> are correctly populated, but I am unsure how <code>paymentIds</code> can be populated.</p>
  
  <p>any pointers appreciated!</p>