-->
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: Pb with HQL query migrating from 3.1.3 to 3.2.0
PostPosted: Fri Feb 16, 2007 11:46 am 
Newbie

Joined: Wed Aug 09, 2006 7:59 am
Posts: 9
Location: Nantes - France
Hi,

I have encountered a problem when migrating from Hibernate 3.1.3 to 3.2.0-ga.

A HQL query which has worked very well before the update seems, now, to have a syntax error, because I have obtained the following exception :

java.lang.IllegalStateException: DOT node with no left-hand-side!
at org.hibernate.hql.ast.tree.DotNode.getLhs(DotNode.java:559)
at org.hibernate.hql.ast.tree.DotNode.getDataType(DotNode.java:534)
at org.hibernate.hql.ast.tree.BinaryLogicOperatorNode.extractDataType(BinaryLogicOperatorNode.java:168)
at org.hibernate.hql.ast.tree.BinaryLogicOperatorNode.initialize(BinaryLogicOperatorNode.java:35)
at org.hibernate.hql.ast.HqlSqlWalker.prepareLogicOperator(HqlSqlWalker.java:1014)
at org.hibernate.hql.antlr.HqlSqlBaseWalker.comparisonExpr(HqlSqlBaseWalker.java:3992)
...

This is the HQL query : "from Demand d where (d.class = fr.crb.soc.Grant or d.class = fr.crb.soc.FamillyEvt) and d.date >= :date"

After some investigations, I found out that the HQL parser seems to no longer accept absolute Java packages names because the query corrected, as following, now works well :
"from Demand d where (d.class = Grant or d.class = FamillyEvt) and d.date >= :date"

That seems to be a regression, isn't it ?

--
Frantz


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.