-->
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: Valeur hexa en HQL
PostPosted: Mon Oct 02, 2006 11:54 am 
Newbie

Joined: Mon Jan 16, 2006 10:49 am
Posts: 12
Bonjour à tous

Hibernate version:
3.2

Description du probleme
Dans une requete HQL je tente de faire une selection sur un champ en passant une valeur en hexa, mais rien à faire, çala ne passe pas le controle de formatage :
org.hibernate.hql.ast.QuerySyntaxException: unexpected token:

en SQL je peux ecrire ça (c'est du DB2 AS400 )
select * from FBSTM where cgeovm=x'FFFF'

Traduit en HQL, voila les différents essais infructueux réalisés.

select p from StatDTO p
where p.cgeo = '0xFFFF'
ou
where p.cgeo = 0xFFFF
ou
where p.cgeo = 'x\'FFFF\''
ou
where p.cgeo = '\\x\'FFFF\''

Comment puis je ecrire l'égalité sur une valeur hexa ?

merci d'avance.


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.