|
From: Juergen H. <ju...@in...> - 2005-07-11 11:44:15
|
True - thanks for spotting this. I'll refine the javadoc accordingly. Juergen -----Original Message----- From: spr...@li... [mailto:spr...@li...] On Behalf Of Jon...@o2... Sent: Monday, July 11, 2005 1:06 PM To: spr...@li... Subject: [Springframework-developer] Javadoc: HibernateTransactionManager * <p>Supports custom isolation levels, and timeouts that get applied as appropriate * Hibernate query timeouts. To support the latter, application code must either use * one of the <code>HibernateTemplate.find</code> methods or call * <code>SessionFactoryUtils.applyTransactionTimeout</code> for each created * Hibernate Query object. From what I think, SessionFactoryUtils.applyTransactionTimeout must only be called when exposeNativeSession is true (unless using HibernateTemplate.find). Otherwise session proxy will be created and CloseSuppressingInvocationHandler will prepare any Query or Criteria object created from that session just fine. This is a cool feature, so maybe javadoc should be more detailed here? I was already seeing myself going through various DAOs and adopting each and every method just because I want to introduce connection timeouts... Regards, Jonas ------------------------------------------------------- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar _______________________________________________ Springframework-developer mailing list Spr...@li... https://lists.sourceforge.net/lists/listinfo/springframework-developer |