-->
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.  [ 5 posts ] 
Author Message
 Post subject: HQL problem
PostPosted: Mon Dec 17, 2007 7:53 am 
Newbie

Joined: Thu Nov 15, 2007 8:44 am
Posts: 6
Hibernate version: 3.2.5.ga

Mapping documents: simply a class with a property mapped as a lava.lang.String

Name and version of the database you are using: Oracle 10g


I have a problem with a HQL query on the String propery of that class:

the query is "from CLASS where code=?".

This query works correcly except when the question mark is substituted with a String containing the character "§". In this case the search fails and the query returns no results, even if in the DB there are results.

Why?
It seams that hibernate translate the § character and so does not find results.
It is a string coding problem?

Bye


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 17, 2007 8:05 am 
Expert
Expert

Joined: Thu May 26, 2005 9:19 am
Posts: 262
Location: Oak Creek, WI
Check out the below two links.
http://opensource.atlassian.com/project ... e/HHH-2077
http://forum.hibernate.org/viewtopic.ph ... 657fdd6e14

May be useful to you:-)

_________________
RamnathN
Senior Software Engineer
http://www.linkedin.com/in/ramnathn
Don't forget to rate.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 17, 2007 9:24 am 
Newbie

Joined: Thu Nov 15, 2007 8:44 am
Posts: 6
thank you, but these do not solve the problem.

Any other idea?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 17, 2007 9:52 am 
Regular
Regular

Joined: Sat Nov 25, 2006 11:37 am
Posts: 72
Could it be character set issue, i.e. the symbol being encoded into a character set (most likely by the JDBC driver) different to what Oracle is assuming?

Can you enable some form of query logging in Oracle and see what the server is actually getting?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 17, 2007 11:17 am 
Newbie

Joined: Thu Nov 15, 2007 8:44 am
Posts: 6
resolved, it was not an hibernate problem, but the parameter passed to my method was wrong


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

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.