• Post Reply Bookmark Topic Watch Topic
  • New Topic

HOw to manage the session object after transaction is completed?

 
amarshi mohanty
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
For hibernate there are below session methods():
1.session.flush();
2.session.close();
3.session.evict(arg0);
4.session.clear();

What is the basic difference between all and after i do session.save(arg) , what should be the order of there methods invocation?

Thanks
Amarshi

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best place to get answer about what particular methods do are the API javadocs.
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!