---
title: "hibernate操作oracle中文查询条件乱码解决方法（转发）"
author: "RyanXL"
date: "2012-09-24T19:24:51Z"
tags: ["Hibernate"]
categories: ["企业架构"]
slug: "hibernate-oracle"
draft: false
lastmod: "2012-09-24T19:24:51Z"
id: 1684565
url: "https://ryanxl.iteye.com/blog/1684565"
---

在hibernate总配置文件里 加上

&lt;property name="hibernate.query.factory\_class"&gt;org.hibernate.hql.classic.ClassicQueryTranslatorFactory&lt;/property&gt;

这句就好了。

注： &lt;property name="connection.characterE[nc](http://www.linuxso.com/command/nc.html)oding"&gt;UTF-8&lt;/property&gt; 光加这一句不行

http://www.linuxso.com/architecture/20650.html