-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: map sum(total) to property?
PostPosted: Wed Dec 28, 2005 11:57 pm 
Beginner
Beginner

Joined: Fri Jun 17, 2005 7:24 am
Posts: 23
How to map the sum(total) in hql to particular property?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 29, 2005 12:10 am 
Beginner
Beginner

Joined: Tue Dec 21, 2004 5:34 pm
Posts: 25
http://www.hibernate.org/hib_docs/v3/reference/en/html/objectstate.html#objectstate-querying-executing-scalar

Is that helpful?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 29, 2005 1:48 am 
Expert
Expert

Joined: Thu May 26, 2005 9:19 am
Posts: 262
Location: Oak Creek, WI
Hi,

Just to add

If you would like to use HQL then check the link below for
http://www.hibernate.org/hib_docs/v3/re ... ggregation

or If would like to use Criteria then use Projection

http://www.hibernate.org/hib_docs/v3/re ... projection

_________________
RamnathN
Senior Software Engineer
http://www.linkedin.com/in/ramnathn
Don't forget to rate.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.