Hi ,
Can some one throw a light on this . We are using Hibernate factory for all transaction in our application. We had set below in Hibernate config file. My question we are trying get connection from current session and call a procedure using a statemen. DO I need to close the connection after this processing or since I am taking form currentSession hibernate handles. Th
<property name="hibernate.connection.release_mode">auto</property>
Session currentSession = SESSION_FACTORY.getCurrentSession();
stmt = currentSession .connection().prepareCall(SP_DBASCAPR);
stmt.setLong(1,assocId);
stmt.execute();
_________________ Kartheck
|