It's one of the main reasons I use Spring. I don't use Spring Hibernate, I use Spring JPA (using Hibernate JPA as the JPA persistence mechanism). Spring not only manages the session, it also eliminates the need repeatedly code error handling code for the session.
An IDE is no substitute for an Intelligent Developer.
He baked a muffin that stole my car! And this tiny ad:
Download Free Java APIs to Work with Office Files and PDF