-->
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: "createQuery()" und Umlaute
PostPosted: Wed Jan 04, 2006 1:51 pm 
Newbie

Joined: Tue Sep 06, 2005 11:11 am
Posts: 11
Location: Germany
Hallo,

ich habe ein Problem mit "createQuery()" und Umlauten. Folgende Zeile verursacht eine RuntimeException:

result = session.createQuery("from CatalogVO where cd like '%Hörspiele03%'").list();


Lt. Fehlertext stört sich "createQuery" an dem "ö" von "Hörspiele". Ist das normal? Muß der Umlaut wie in HTML ersetzt werden?

Das Ganze läuft unter Hibernate3.

Vielen dank
Richard[/b]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 04, 2006 2:08 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
"where foo like :bar:"

query.setString("bar", "Meine krassen Umlaute");


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 05, 2006 4:27 am 
Newbie

Joined: Tue Sep 06, 2005 11:11 am
Posts: 11
Location: Germany
Hi Christian,

danke, es hat etwas gedauert, bis ich wußte, was Du meinst, aber jetzt gehts!


Richard


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.