-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: diff bet. sessionFactory.openSession() & Hibernate.curre
PostPosted: Mon Mar 14, 2005 11:40 pm 
Beginner
Beginner

Joined: Mon Mar 14, 2005 9:07 am
Posts: 27
Hi Friends I am new to Hibernate and still researching it. There is one thing I need to ask which I didn't find in the books-


What is the difference between

Session session = sessionFactory.openSession();


and

Session session = HibernateSession.currentSession();



How do we know when to use what?


Regards,
Ashish Abrol


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 15, 2005 3:05 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Well, how about a hint as to what HibernateSession is.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.