-->
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.  [ 2 posts ] 
Author Message
 Post subject: Simple Query ? Hibernate to the test !!!
PostPosted: Sun Apr 25, 2004 4:28 pm 
Newbie

Joined: Sun Apr 25, 2004 4:23 pm
Posts: 1
Hello!

Would like to do a VERY simple query like that:

Table ACCOUNT which is a mapped class,

select sum(debit) - sum(credit) from account where clientId = ?

which will give me the account balance....

any idea, shortest way possible ???
would be dispointed in Hibernate I could not do that...

Thank you!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 25, 2004 6:15 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Arithmetic Expressions in the Select clause are currently not supported.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.