-->
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.  [ 1 post ] 
Author Message
 Post subject: n00b quiestion about a HQL query
PostPosted: Tue Mar 02, 2010 1:28 pm 
Newbie

Joined: Tue Mar 02, 2010 1:10 pm
Posts: 1
Hi! I need help with a query i want to make that i just cant figure out.

I have an Object Billitem with the columns - billitemid, billid, itemid, taxid
and Billitemoption with columns - billitemoptionid, billitemid, optionid

billid refers to the object Bill, itemid to the Object Item, taxid to Tax, billitemid to Billitem and option id to Option.

A Bill can have several Billitems which in turn can have different billitemoptions, and my problem is that i want to count how many of each Billitem with distinct billitemoptions there is in a Bill. And i would also like the query to return the distinct Billitems with the corresponding amounts of each distinct item in a List or something.


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

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.