-->
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: Non-transactional access to Hibernate objects
PostPosted: Fri Oct 31, 2003 2:37 am 
Newbie

Joined: Fri Oct 31, 2003 2:25 am
Posts: 1
What are the rules for reading Hibernate objects outside of transactions?

I wrote a sample program that accesses objects after the transaction commits (but the session is still open) and it appears to work. Objects are loaded from the database and presumably cached.

The behavior seems equivalent to JDO's non transactional reads and retainValues.

Is this specified anywhere?
Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 31, 2003 4:00 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Same as pure SQL call over connection

OpenCnx
beginTx
MySQL calls
commitTx
MyOtherNonTxReadCalls
closeCnx

_________________
Emmanuel


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.