Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: unknown HQL return alias "currentTask"
PostPosted: Fri Jun 10, 2011 3:14 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"


Top
 Profile  
 
 Post subject: Re: unknown HQL return alias "currentTask"
PostPosted: Fri Jun 10, 2011 3:43 pm 
Contributor
Contributor

Joined: Mon Feb 28, 2011 7:27 pm
Posts: 20
Location: France
Hi,

Your question is posted in the wrong section (this forum section is related to Bean Validation feedback).
For questions related to Hibernate/JPA use viewforum.php?f=1

Thanks

--Kevin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 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.