Hibernate version:3.0 final
Spring version: 1.2 rc 1
Name and version of the database you are using:oracle
The generated SQL (show_sql=true):
Problem with Coding in HQL change to sql
String Hql = "from Customer c where c.name='测试' ";
getHibernateTemplate().find(Hql);
//////////////////////////////////////////////
i can see the sql in the tomcat console:
Hibernate: select customer0_.CUSTOMER_NO as CUSTOMER1_, customer0_.CODE as CODE9
_, customer0_.NAME as NAME9_, customer0_.STATUS as STATUS9_, customer0_.LAST_OPE
RATOR_NO as LAST5_9_ from CUSTOMER customer0_ where (customer0_.NAME='????')
by the way, it's run well in the 3.0 rc1 version.
Thank for you help!
|