Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
v.3.0
Name and version of the database you are using:
Postgres 8.0, latest JDBC Driver
I try to execute the following statement:
select * from Kontakt where userid='grüber';
(Notice the German Umlaut "ü" in the statement, it is the problem)
The following exception is thrown:
13:33:45,609 DEBUG QueryTranslatorImpl:206 - parse() - HQL: from at.administration.hibernate.mappedClasses.Kontakt where userid='grüber')
13:33:45,625 ERROR PersonDisplayAction:84 - Hibernate Exception:
org.hibernate.QueryException: expecting ''', found 'ü' [from at.administration.hibernate.mappedClasses.Kontakt where userid='grüber')]
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)
[....]
The root cause seems to be
expecting ''', found 'ü'. Is there an option I missed so that hibernate can deal with German Umlaute in the statements? When I directly execute the statement in the postgres database, it works.
Thanks in advance!
Regards,
Markus