-->
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: Cannot Execute Query containing Swedish Characters
PostPosted: Fri Jan 12, 2007 4:43 am 
Newbie

Joined: Fri Jan 12, 2007 4:22 am
Posts: 1
not able to Execute a HQL Query containing Ä characters (Swedish Character )



org.hibernate.QueryException: expecting ''', found 'ä' [from com.wipro.DXCpojo.NodePojo where name ='HS/RÄ ODF 1/1/E']
at org.hibernate.hql.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:165)
at org.hibernate.hql.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:83)
at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:414)
at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:814)
at org.hibernate.impl.SessionImpl.list(SessionImpl.java:773)
at org.hibernate.impl.QueryImpl.list(QueryImpl.java:74)


Thanks in Advance


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 11:05 am 
Newbie

Joined: Mon Dec 25, 2006 3:14 pm
Posts: 18
you may want to specify the charset i.e. setting "hibernate.connnection.charSet" varaible of the session-factory
http://www.hibernate.org/hib_docs/refer ... tion..html


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 13, 2007 11:06 am 
Newbie

Joined: Mon Dec 25, 2006 3:14 pm
Posts: 18
try setting value to "UTF-8"


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.