-->
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.  [ 2 posts ] 
Author Message
 Post subject: Swedish letters in like condition
PostPosted: Thu May 20, 2010 8:52 pm 
Newbie

Joined: Sun Nov 15, 2009 8:22 pm
Posts: 19
How do I get hibernate to understand that I want to search on swedish letters?

Restrictions.like("name", "Å%")

returns everything starting with a A or Å not only Å.
The same goes for Ä. For Ö it returns everything starting with O and Ö.

If you cant see the letter because of some encoding problem, its a A with one dot above.

Thanks!


Top
 Profile  
 
 Post subject: Re: Swedish letters in like condition
PostPosted: Fri May 21, 2010 3:24 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
You should verify if this is hibernate code messing with it, or your database (as I think that's more likely) can you have your app log the statement and try performing yourself on a console?

Also you might want to give a try to Hibernate Search, it really focuses on solving this kind of problems in most efficient way - and doesn't have database encoding problems.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.