-->
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.  [ 4 posts ] 
Author Message
 Post subject: Transactions required for read only ?
PostPosted: Sat Oct 02, 2004 3:26 pm 
Newbie

Joined: Thu Sep 30, 2004 2:14 am
Posts: 3
1. Apart from factors like phanton read ( isolation level ), I m wondering if one is expected to use Transactions for a query operation.

2. In case of a query, what happens when one rolls back the transaction.

3. Also with respect to Clob, am I expected to be within the transactional context when I do the query ?

4. Can I close() the session before I access the Clob object ?

--sony


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 02, 2004 3:34 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
This has been discussed to death. Always demarcate Transactions, no matter if you read or manipulate data. There is also a (very) long answer you probably don't want to hear.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 02, 2004 3:50 pm 
Regular
Regular

Joined: Sat Aug 28, 2004 4:15 pm
Posts: 61
I'd like to hear it.

_________________
Joe W


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 02, 2004 6:03 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Search the forum, it has already been discussed extensively.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.