hibernate Hql 不支持中文問題!!
hibernate3.0.2中執(zhí)行如下的:
from Persion p where p.name='張三'log信息,'張三'在這條hsql轉(zhuǎn)成sql的時候變成了亂碼
解決方法:升級到 Hibernate3.1 rc2 ! 只需要替換 hibernate3.jar 文件就可以了!
from Persion p where p.name='張三'log信息,'張三'在這條hsql轉(zhuǎn)成sql的時候變成了亂碼
解決方法:升級到 Hibernate3.1 rc2 ! 只需要替換 hibernate3.jar 文件就可以了!
posted on 2006-02-19 18:16 一滴水 閱讀(690) 評論(0) 編輯 收藏 所屬分類: ORM