-->
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.  [ 3 posts ] 
Author Message
 Post subject: How can I obtain the Transaction Isolation level
PostPosted: Mon Feb 09, 2015 1:21 pm 
Newbie

Joined: Thu Apr 07, 2005 8:58 am
Posts: 6
I used to be able to call
currentSession().connection().getTransactionIsolation()
to inquire which isolation level a connection was using. Now, connection() is removed in the new 4.x version. How am I supposed to get this information now?


Top
 Profile  
 
 Post subject: Re: How can I obtain the Transaction Isolation level
PostPosted: Mon Feb 09, 2015 9:55 pm 
Newbie

Joined: Mon Feb 09, 2015 5:04 pm
Posts: 6
[quote="greenerg"]An article or speech, if it is important to give guidance, must propose a what question, then to analysis, and then combined, pointing to the nature of the problem, give the solution



Again - Sometimes I need what only you can provide: your absence. If you cannot assist, don't bother responding. Your attempt at sounding as grammatically superior is far less than brilliant.


Top
 Profile  
 
 Post subject: Re: How can I obtain the Transaction Isolation level
PostPosted: Wed Feb 11, 2015 6:17 am 
Hibernate Team
Hibernate Team

Joined: Fri Sep 09, 2011 3:18 am
Posts: 295
Hi,
you can access the connection via the doWork method:
Code:
      currentSession().doWork( new Work() {
         @Override
         public void execute(Connection connection) throws SQLException {

         }
      } );


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