-->
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: How can I remove accent?
PostPosted: Wed Feb 09, 2005 4:01 pm 
Beginner
Beginner

Joined: Thu Feb 05, 2004 9:09 am
Posts: 27
Hibernate version:2.1.8

I have this:

Criteria c = persistenciaHibernate.createCriteria(new TipoCargoVO(), TipoCargoVO.class);

c.add(Expression.like("descricao", "Secretário", MatchMode.ANYWHERE).ignoreCase());

But I wanna do in this criteria remove accent in word "Secretário" when hibernate communicate with database, I need this happend both side.
How can I do this?
Thank´s for all!!!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 09, 2005 4:30 pm 
Beginner
Beginner

Joined: Tue Feb 08, 2005 7:01 am
Posts: 21
you should remove the accent yourself before passing it to Hibernate and before storing such a value in the database. If you have a DBMS which has a builtin function for this then I don't know.


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.