-->
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.  [ 1 post ] 
Author Message
 Post subject: SQL trace: 2.1 alternative to Interceptor.onPrepareStatement
PostPosted: Fri Jul 21, 2006 5:41 pm 
Newbie

Joined: Fri Jul 21, 2006 5:15 pm
Posts: 1
Location: Rio de Janeiro, Brasil
Hibernate version: 2.1.7

I am trying to implement a SQL trace that will show which Session each SQL statement has come from. From what I can see, one way to do this in version 3.1 is to pass in an Interceptor when I open the Session and get the SQL from Interceptor.onPrepareStatement().

Interceptor.onPrepareStatement() does not exist in version 2.1.7. Do I have any other options?

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.