-->
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: Hibernate Reference - small correction 14.4 Session disconec
PostPosted: Wed Sep 03, 2003 4:50 am 
Proxool Developer
Proxool Developer

Joined: Tue Aug 26, 2003 10:42 am
Posts: 373
Location: Belgium
According to me, there is a mistake in the second code snippet in chapter 14.4 Session disconnection (http://www.hibernate.org/hib_docs/reference/html/transactions.html#transactions-s4

In the Later on: section, I think the transaction should be obtained as follows:

Code:
s.reconnect();
try {
    tx = s.beginTransaction();


rather than:
Code:
s.reconnect();
try {
    tx = sessions.beginTransaction();


In this example, the sessions var refers to the SessionFactory rather than the Session.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 03, 2003 4:55 am 
Thanks, fixed it.


Top
  
 
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.