-->
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: how to conver this sql query to hql?
PostPosted: Fri Apr 01, 2016 4:14 am 
Newbie

Joined: Fri Apr 01, 2016 4:08 am
Posts: 3
SELECT detail.netPrice, header.storeId, day(header.invoiceDate) FROM sales_invoice_retail_detail detail JOIN sales_invoice_retail_header header ON header.id = detail. salesInvoiceHeaderId WHERE MONTH(header. invoiceDate) = input_month AND YEAR(invoiceDate) = input_year AND header.storeId = input_storeId GROUP BY header.storeId, header. invoiceDate.


Top
 Profile  
 
 Post subject: Re: how to conver this sql query to hql?
PostPosted: Fri Apr 01, 2016 5:34 am 
Hibernate Team
Hibernate Team

Joined: Thu Sep 11, 2014 2:50 am
Posts: 1628
Location: Romania
What have you tried so far?


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.