-->
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: Unknown HQL return alias "currentTask"
PostPosted: Mon Jun 13, 2011 7:02 am 
Newbie

Joined: Fri Jun 10, 2011 3:01 am
Posts: 4
Hi,

i am trying to generate a report using hibernate

the following query is in the JRXM file...

select mo.currentTask, count(*) from MasterOrder mo where mo.createdDate between '01-DEC-2010' and '30-DEC-2011'
and lower(mo.status) in('in_effect','cancel_completed','completed') group by mo.currenttask


after excecuting the report in IReport Tool or jasperserver ... i am getting the following exception

net.sf.jasperreports.engine.JRRuntimeException : Unknown HQL return alias "currentTask"


Last edited by venkataseerla on Fri Jun 17, 2011 9:10 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Unknown HQL return alias "currentTask"
PostPosted: Fri Jun 17, 2011 9:09 am 
Newbie

Joined: Fri Jun 10, 2011 3:01 am
Posts: 4
I got a solution proublem is i query

we need to modify the HQ query

select count(mo) as total, mo.currentTask from MasterOrder as mo where mo.createdDate between '01-DEC-2010' and '30-DEC-2011'
and lower(mo.status) in('in_effect','cancel_completed','completed') group by mo.currenttask


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.