Comments on: Example On Hibernate Criteria With Multiple Projections Get it YourSelf Wed, 30 Sep 2015 14:44:44 +0000 hourly 1 By: srikanth Fri, 06 Mar 2015 09:26:11 +0000 I thought, found one bug in this post or i did not understand properly.

In previews example (adding one prjection to criteria) used below statement,
i.e, crit.setProjection() with action one Projections object.

Now, again you used same criteria method to add projectionList like below

ProjectionList p1=Projections.projectionList();


p1 is projectionList one projections, so how this crit.setProjection() method accept that,

This is my doubt.

By: Evyavan Mon, 24 Nov 2014 14:44:51 +0000 First of all let me say that the post is a nice one. I am here. shamelessly, to ask for a helping hand. I need to figure out something and if you can and time permits please give me an answer for this question.

I am 95% sure this cannot be done how I have coded it, but I sure hope there is a way around. Please excuse my ignorance as I am still learning the ropes of hibernate.

By: appesh Mon, 22 Sep 2014 12:40:16 +0000 Insted of Iterating Object we can type case into Specifed Object eg: p1.add(“price”).setResultTransformer(Transformers.aliasToBean(XXXX.class));