-->
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: Hibernate does not support query using Chinese character?
PostPosted: Thu Apr 07, 2005 11:24 pm 
Newbie

Joined: Thu Apr 07, 2005 11:05 pm
Posts: 1
Database: oracle9.
when I execute the following:

from mvc_hibernate2.provinces.Provinces as cat where cat.province_name='A'

it is ok.
But if I change 'A' to a Chinese character (for example: '็Ž‹') or a Chinese string, it will complain as below:

org.hibernate.QueryException: expecting ''', found 'ยจa' [from mvc_hibernate2.provinces.Provinces as cat where cat.province_name='็Ž‹']
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.hib....

why?
eager for help...(Chinese hibernate forum has collapsed)


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.