*
The moose likes Object Relational Mapping and the fly likes diference between session and sessionFactory? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "diference between session and sessionFactory?" Watch "diference between session and sessionFactory?" New topic
Author

diference between session and sessionFactory?

Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Hi I am little confuse with this issue please anyone here help me out ->diference between session and sessionFactory in hibernate?


Thanks

Kaustubh


No Kaustubh No Fun, Know Kaustubh Know Fun..
Jelle Klap
Bartender

Joined: Mar 10, 2008
Posts: 1756
    
    7

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.


Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

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

Joined: Apr 14, 2004
Posts: 10336

CRUD = Create, Read, Update and Delete. Or the basic operations of any database.

The Hibernate JavaDocs explain it quite well.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Kaustubh G Sharma
Ranch Hand

Joined: May 13, 2010
Posts: 1270

Thanks for updating paul...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: diference between session and sessionFactory?
 
Similar Threads
what is tcp??IP??diference between them??
is the Hibernate Threadsafe?
Favorite saying/punchline
addHeader(String, String) vs. setHeader(String, String)
jdk