-->
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.  [ 3 posts ] 
Author Message
 Post subject: Finding entities with ISO-8859-1 characters
PostPosted: Mon Jun 18, 2007 4:04 am 
Newbie

Joined: Mon Dec 12, 2005 8:57 am
Posts: 13
Hi,

I would like to query data without explicitly forcing the user to write special characters or caps. For example, querying in a varchar column for jose should retrieve JOSE, Jose, josé or jöse

I'm not sure how to achieve this. I'm using Hibernate as my JPA provider. Do I need Hibernate search?

Regards,


Last edited by xmaniac on Mon Jun 18, 2007 6:50 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 18, 2007 5:03 am 
Regular
Regular

Joined: Wed May 05, 2004 8:01 am
Posts: 53
You cannot achieve this kind of functionality in pure SQL. You probably need some properly configured indexing engine + post commit actions.

Hibernate Search is the right place to start. Even if does not help you implement exactly what you want you can always mimic the code to write your own post commit action (I doubt you will have to do that).

Please rate if that helps.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 18, 2007 6:50 am 
Newbie

Joined: Mon Dec 12, 2005 8:57 am
Posts: 13
In the end, using Oracle proved to be easier. For anyone interested:

Code:
alter session set nls_comp='LINGUISTIC';
alter session set nls_sort='XSPANISH_AI';

Regards


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.