-->
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: using transactions for read-only database transactions
PostPosted: Tue Jul 20, 2004 8:02 am 
Newbie

Joined: Thu May 06, 2004 10:10 am
Posts: 14
Hi everybody,

Reading through some threads on this forum I have found out that people from the Hibernate Team state the following:

Quote:
You should always use transactions, even when only reading data.


Ofcourse I understand the need for transactions when i'm updating persistent data, it's the read-only case that's troubling me :-)

Can anyone explain to me why I should use a transaction in a read-only databaseaction? Is the reason related to *other* databaseactions that are done within the lifetime of the same hibernate-session?

regards,
Hans


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 20, 2004 8:42 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
This has been discussed numerous times already, search the forum. There is no such thing as no transaction, and you should better do explicit handling.


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.