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 HQL en migrant de 3.1.3 vers 3.2.0
PostPosted: Fri Feb 16, 2007 11:59 am 
Newbie

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

J'ai rencontré un problème en passant de la version Hibernate 3.1.3 vers 3.2.0-ga.

Une requête HQL qui fonctionnait bien avant la mise à jour semble, maintenant, avoir un problème de syntaxe car j'ai obtenu l'exception suivante :

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)

Voici la requête HQL : "from Demande d where (d.class = fr.crb.soc.Pret or d.class = fr.crb.soc.EvtFamille) and d.date >= :date"

Après quelques investigations, il semble que le parser HQL ne semble ne plus accepter les nom de package Java absolus.

En effet, la requête corrigée comme suit, marche très bien :
"from Demande d where (d.class = Pret or d.class = EvtFamille) and d.date >= :date"

Cela semble être une régression, non ?

-- 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.