-->
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: "Isolation level" settings
PostPosted: Wed Sep 17, 2003 5:18 pm 
Beginner
Beginner

Joined: Fri Sep 12, 2003 5:13 am
Posts: 22
Hello,

I found only few informations on using isolation levels with Hibernate. It seems that the only way to specify the isolation level is in hibernate.properties. Is there any way to specify it for a particular session (or transaction) ?

Thanks in advance

Philippe


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 26, 2003 12:11 pm 
Regular
Regular

Joined: Tue Sep 09, 2003 9:37 pm
Posts: 56
Location: Ogden, Utah, USA
You can just set it on the session's connection:

session.connection().setTransactionIsolation(Connection.TRANSACTION_SERIALIZABLE);

Good luck,
Jenica


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.