This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

diference between session and sessionFactory?

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am little confuse with this issue please anyone here help me out ->diference between session and sessionFactory in hibernate?


Thanks

Kaustubh
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The main responsibility of a Hibernate SessionFactory is to create and manage Sessions.
The main responsibility of a Hibernate Session is to provide a CRUD interface for mapped classes, and also access to the more versitile Criteria API.
Really, it's more difficult to find commonalities than it is to find differences between these two classes...
Have a look at the API documentation.
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yet confused with this ...Will you please make it a little simple for me....

I don't understand the things like
CRUD interface


 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CRUD = Create, Read, Update and Delete. Or the basic operations of any database.

The Hibernate JavaDocs explain it quite well.
 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for updating paul...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic