-->
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: Stopping hibernate converting hex value to unicode
PostPosted: Mon Jul 28, 2008 9:25 am 
Newbie

Joined: Mon Jul 28, 2008 9:11 am
Posts: 2
Hi everybody.

I have a problem which I hope I could get some help for.

I have a hql query where I want customer back for a certain customerId, where the customerId is a system key (hex value).
e.g.

("from Customer as c where c.customerId=HEX('F1F0F0F0F0F0F0F1')");

The problem I am having is that hibernate is converting the hex value first into unicode, which I don't want before it sends it to the database.

I am using a db2 on the mainframe and I want the whole query to be sent as it is with the same hex values.

Can I get some help please.

Thanks Pritesh


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.