• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Hibernate and Spring: Opening and Closing Session  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello;

I need to know if Spring behind this:

I noticed that when using Hibernate and Spring, no need to open the session and load the data, in other words: no need for the following to be used:


Is it because Spring? Or I am missing something?
Regards
Bilal
 
Saloon Keeper
Posts: 20658
122
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is because Spring.

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.
 
What a stench! Central nervous system shutting down. Save yourself tiny ad!
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!