File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

diference between session and sessionFactory?

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • 0
  • 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: 1951
7
Eclipse IDE Java
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for updating paul...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic