-->
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: createSQLQuery sent me HibernateQueryException
PostPosted: Wed Mar 02, 2005 3:26 pm 
Newbie

Joined: Thu Jul 08, 2004 2:12 pm
Posts: 5
Hi folks! Help me if you can!

I used createSQLQuery tring a count(*) from a teble but it sent me a


HibernateQueryException:

org.springframework.orm.hibernate.HibernateQueryException: Alias [L] does not correspond to any of the supplied return aliases =

{[{L}]} [ SELECT {L.*} FROM LOG {L} WHERE MATCH({L}.SEVERIDADE,{L}.PALAVRAS_CHAVE,{L}.MENSAGEM_CURTA) AGAINST('WARN + ' ' + contestado , cobilling') AND {L}.DATA BETWEEN '2005-01-01' AND '2005-02-02'];

nested exception is net.sf.hibernate.QueryException: Alias [L] does not correspond to any of the supplied return aliases = {[{L}]}

[ SELECT {L.*}
FROM LOG {L} WHERE MATCH({L}.SEVERIDADE,{L}.PALAVRAS_CHAVE,{L}.MENSAGEM_CURTA)
AGAINST('WARN + ' ' + contestado , cobilling')
AND {L}.DATA BETWEEN '2005-01-01' AND '2005-02-02']

How can it be done?! Thanks!!!

Fernando Cangussu


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.