Joined: Tue May 27, 2008 4:55 am Posts: 2
|
Hi I have a question about the Hibernate 3.0.
Can we impliment Proxy session in Hibernate. if we can then please tell me how we can impliment.
Example.
Connection conn= JDBC.getConnection();
Properties properties = new Properties();
properties.put("PROXY_USER_NAME", "NOTIFICATION");
((OracleConnection)conn).applyConnectionAttributes(properties);
final Session saveSession1 = sessionFactory.openSession(conn);
saveSession1.beginTransaction();
saveSession1.saveOrUpdate(object);
saveSession1.flush();
//((OracleConnection)conn).close(OracleConnection.PROXY_SESSION);
saveSession1.getTransaction().commit();
but this code is giving the following error
This method is only implemented in logical connections
|
|