在hibernate总配置文件里 加上
<property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
这句就好了。
注: <property name="connection.characterEncoding">UTF-8</property> 光加这一句不行
http://www.linuxso.com/architecture/20650.html
Hibernate HQL配置详解
312

被折叠的 条评论
为什么被折叠?



