如下所示的log信息:
select count(*) from TalVteamBasicinfo as m where 1=1 and m.teamName like '%车
队%'
Hibernate: select count(*) as col_0_0_ from tal_vteam_basicinfo talvteamba0_ whe
re 1=1 and (talvteamba0_.Team_name like '%????%')
Hibernate: select talvteamba0_.id as id, talvteamba0_.Team_name as Team2_8_, tal
vteamba0_.Team_leader_name as Team3_8_, talvteamba0_.Team_address as Team4_8_, t
alvteamba0_.Team_phone as Team5_8_, talvteamba0_.Remark as Remark8_ from tal_vte
am_basicinfo talvteamba0_ where 1=1 and (talvteamba0_.Team_name like '%????%') l
imit ?
对于之前的log信息,是我在调用session.createQuery(hqlStr);之前对hqlStr打印的结果,之后的信息为hibernate转化出来的查询代码。中文的“车队”被识别为乱麻。请教高手如何解决?
作者: yuxiubin
发布时间: 2007-05-16