title: Retrieving a list of objects with null in the properties after applying resultTransformer
body: <p>In a criteria query I am getting a list of results in a right way. </p>
  
  <p>As I dont want to all the fields from the entities projection is introduced to specify these fields. Ok, with projection is working fine but, instead of a List of entity is getting a list of object. </p>
  
  <p>As I read, I need to apply <code>setResultTransformer(ClassName.class)</code>. When resultTransformer is applied, a list of className are retrieved but all the atributes of the object are NULL. I have tried different parameters to the resultTransformer and always getting a list of object with null in all attributes.</p>
  
  <p>Eg.:    </p>
  
  <pre><code>criteria.setProjection(proList)
     .setResultTransformer( 
         new AliasToBeanResultTransformer(TramiteTrafico.class));
  </code></pre>
  
  <p>If not resultTransformer is applied getting values are right.
  Any idea why?</p>
  
  <p>Thanks all!!</p>