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)
|