Comments on: Example On Hibernate Criteria With Multiple Projections http://www.java4s.com/hibernate/example-on-hibernate-criteria-with-multiple-projections/ Get it YourSelf Tue, 30 Aug 2016 14:57:13 +0000 hourly 1 http://wordpress.org/?v=224 By: suryas http://www.java4s.com/hibernate/example-on-hibernate-criteria-with-multiple-projections/#comment-5039 Mon, 06 Jun 2016 06:34:14 +0000 http://www.java4s.com/?p=871#comment-5039 I have learnt hibernate f/w with your articles.
it is too good.heartly thanksful to you.

]]>
By: shgy http://www.java4s.com/hibernate/example-on-hibernate-criteria-with-multiple-projections/#comment-4468 Sat, 12 Dec 2015 10:14:58 +0000 http://www.java4s.com/?p=871#comment-4468 Thanks!
Very nice Article!

]]>
By: srikanth http://www.java4s.com/hibernate/example-on-hibernate-criteria-with-multiple-projections/#comment-3448 Fri, 06 Mar 2015 09:26:11 +0000 http://www.java4s.com/?p=871#comment-3448 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,
crit.setProjection(Projections.property(“proName”));
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.add(Projections.property(“proName”));
p1.add(Projections.property(“price”));

crit.setProjection(p1);

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

This is my doubt.

]]>