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.  [ 1 post ] 
Author Message
 Post subject: [Criteria] Génération de la fonction translate()
PostPosted: Tue Oct 30, 2007 12:53 pm 
Newbie

Joined: Tue Oct 30, 2007 12:38 pm
Posts: 1
Bonjour,

J'utilise Hibernate 3 et l'api Criteria.

Je cherche à savoir qu'elle est l'instruction de l'API Criteria pour générer la function SQL translate().

Ma table est MA_TABLE avec la colonne MA_COLONNE. La correspondance en Java donne le classe MaTable avec l'attribut maColonne.

Je souhaite obtenir le SQL suivant : translate(MA_COLONNE, 'é', 'e'). Pourquoi ? Car un simple Restrictions.ilike("maColonne", "qqchose") n'est que pour l'insensibilité de la casse et pas l'insensibilité des accents.

Je cherche donc la méthode qui me permettra de générer la fonction translate() en SQL par l'API Criteria.

Merci.


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

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.