-->
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: case insensitive and accent insensitive query
PostPosted: Wed Mar 10, 2010 12:10 pm 
Beginner
Beginner

Joined: Tue Aug 26, 2008 4:24 pm
Posts: 29
I want to send a query to evaluate if a string is already present in a column of a table. I want case insensitive and accent insensitive query.
1. Is there a method in Hibernate to get it or a SQL query that works for all databases?

Thanks


Top
 Profile  
 
 Post subject: Re: case insensitive and accent insensitive query
PostPosted: Wed Mar 10, 2010 3:33 pm 
Regular
Regular

Joined: Thu May 07, 2009 5:56 am
Posts: 94
Location: Toulouse, France
hi, I don't think this is possible with Hibernate nor exists a universal query for accent insensitive search (each RDBMS provide own functions to do it). e.g SQL Server, you can set a collation for the column. Oracle provides this: http://www.rampant-books.com/10g_77.htm

for case insensitive search only take a look at https://www.hibernate.org/293.html

What about Hibernate Search? maybe it provides an ease away to do your requirement....

_________________
everything should be made as simple as possible, but not simpler (AE)


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:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.