Try this (
http://www.hibernate.org/118.html#A26), works for me:
Code:
Session session = HibernateSessionFactory.getInstance().getCurrentSession();
try {
tx = session.beginTransaction();
PreparedStatement ps = session.connection().prepareStatement("alter session set nls_languague=French");
ps.execute();
classList = session.createQuery("from ... where ...").setCacheable(true).list();
...
} catch (HibernateException he) {
he.printStackTrace();
} catch (java.sql.SQLException sqle) {
sqle.printStackTrace();
}
- Josue